iOS Native SDK
Các hàm trong iOS Native SDK
initWithClientKey
initWithClientKeyNSString *clientKey = @"YOUR_CLIENT_KEY";
[Pushdy initWithClientKey:clientKey delegate:self launchOptions:launchOptions];let clientKey = "YOUR_CLIENT_KEY"
Pushdy.initWith(clientKey: clientKey, delegate: self, launchOptions: launchOptions)setDeviceID
setDeviceIDNSString *customDeviceID = @"YOUR CUSTOM ID";
[Pushdy setDeviceID:customDeviceID];let customDeviceID = "YOUR CUSTOM ID"
Pushdy.setDeviceID(customDeviceID)getDeviceID
getDeviceIDNSString *yourDeviceID = [Pushdy getDeviceID]let yourDeviceID = Pushdy.getDeviceID()registerForPushNotification
registerForPushNotificationcheckNotificationEnabled
checkNotificationEnabledgetDeviceToken
getDeviceTokengetPendingNotification
getPendingNotificationgetPendingNotifications
getPendingNotificationssetAttribute
setAttributepushAttribute
pushAttributegetPlayerId
getPlayerIdCác Delegation trong iOS Native SDK
readyForHandlingNotification
readyForHandlingNotificationonNotificationReceived
onNotificationReceivedonNotificationOpened
onNotificationOpenedMột số hàm dùng để tuỳ biến hiển thị Push Notification
setPushBannerAutoDismiss
setPushBannerAutoDismisssetPushBannerAutoDismissDuration
setPushBannerAutoDismissDurationsetCustomPushBanner
setCustomPushBannersetCustomMediaKey
setCustomMediaKeyLast updated