React Native SDK
Các hàm trong React Native SDK
initPushdy
initPushdyawait Pushdy.initPushdy({ deviceId: 'YOUR_DEVICE_ID' });getDeviceId
getDeviceIdvar myDeviceId = await getDeviceId();isNotificationEnabled
isNotificationEnabled var isEnabled = await isNotificationEnabled();getDeviceToken
getDeviceTokenvar deviceToken = await getDeviceToken();getPendingNotification
getPendingNotificationgetPendingNotifications
getPendingNotificationssetAttribute
setAttributepushAttribute
pushAttributegetPlayerID
getPlayerIDsetReadyForHandlingNotification
setReadyForHandlingNotificationCác Event trong React Native SDK
onNotificationReceived
onNotificationReceivedonNotificationOpened
onNotificationOpenedonTokenUpdated
onTokenUpdatedMột số hàm dùng để tuỳ biến hiển thị Push Notification
setPushBannerAutoDismiss
setPushBannerAutoDismisssetPushBannerDismissDuration
setPushBannerDismissDurationsetCustomMediaKey
setCustomMediaKeyLast updated