Closed imkrishh closed 1 year ago
Hi @imkrishh, I guess you provided real application code instead of '<your app code>'
?
Could you please share with us android and iOS logs (RN logs isn't enough for investigation the issue), to set logging for iOS you need to put logging: true to the configuration.
Also please describe how are you sending notifications (API, portal, using some user Id for which user is personalized or?)
Would be great to know pushRegId from the installations which failed to receive messages - https://github.com/infobip/mobile-messaging-react-native-plugin/wiki/How-do-I-get-Infobip's-unique-(push-registration)-ID
You can send sensitive data to our support e-mail - support@infobip.com
@riskpp, yes real application code is being used. it was working fine on version infobip-mobile-messaging-react-native-plugin v4.1.6
Then we need what I asked previously (logs and etc.) Have you check the Migration guides?
This is the error we are getting when trying to send push notifications from infobip portal.
Outbound Mobile Push Undeliverable - Handset errors Expired pushRegistrationId (code 8001) Reason: UNDELIVERABLE_REJECTED_OPERATOR Test.
Below added the logs from iOS when set logging: true
2022-07-05 17:38:04:625 [MobileMessaging] đ [MobileMessaging] Starting service (with apns registration disabled=false, apns unregistering disabled=false, notification center delegate disabled=false)...
2022-07-05 17:38:04:632 [MobileMessaging] đŦ Unarchived Optional(<MobileMessaging.InternalData: 0x2829d40e0>) from /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:632 [MobileMessaging] đŦ Setting cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} <MobileMessaging.InternalData: 0x2829d40e0> /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:644 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:644 [MobileMessaging] đŦ Setting cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:644 [MobileMessaging] đŦ Archiving <NSThread: 0x2817ad940>{number = 8, name = (null)} at /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:652 [MobileMessaging] đŦ Unarchived Optional(<MobileMessaging.MMInstallation: 0x105a51e70>) from /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:652 [MobileMessaging] đŦ Setting cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} <MobileMessaging.MMInstallation: 0x105a51e70> /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:653 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:653 [MobileMessaging] đ [MMMessageHandler] starting
2022-07-05 17:38:04:653 [MobileMessaging] đ [VersionManager] started...
2022-07-05 17:38:04:654 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:698 [MobileMessaging] đ [MessagesEvictionOperation] started...
2022-07-05 17:38:04:700 [MobileMessaging] đŦ [Core Data] NO CHANGES IN ** UNNAMED ** CONTEXT - NOT SAVING
2022-07-05 17:38:04:700 [MobileMessaging] đ [MessagesEvictionOperation] finished with errors: []
2022-07-05 17:38:04:700 [MobileMessaging] đ [LocalMessageFetchingOperation] Retrieved 0 messages from notification extension storage.
2022-07-05 17:38:04:709 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:721 [MobileMessaging] đ [DynamicBaseUrlHTTPSessionManager] Sending request:
2022-07-05 17:38:04:723 [MobileMessaging] đ [NotificationsInteractionService] starting
2022-07-05 17:38:04:723 [MobileMessaging] đ [MobileMessaging] Retrying sending mobile originated messages...
2022-07-05 17:38:04:724 [MobileMessaging] đ [UserSessionService] starting
2022-07-05 17:38:04:724 [MobileMessaging] đ [InstallationDataService] starting
2022-07-05 17:38:04:724 [MobileMessaging] đ [InstallationDataService] sync installation data with server...
2022-07-05 17:38:04:724 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:724 [MobileMessaging] đŦ Unarchived Optional(<MobileMessaging.MMInstallation: 0x105a9e240>) from /{path}/Library/Application Support/com.mobile-messaging.dirty-installation
2022-07-05 17:38:04:725 [MobileMessaging] đŦ Setting cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} <MobileMessaging.MMInstallation: 0x105a9e240> /{path}/Library/Application Support/com.mobile-messaging.dirty-installation
2022-07-05 17:38:04:725 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:727 [MobileMessaging] đ [UserSessionService] starts
2022-07-05 17:38:04:728 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:756 [MobileMessaging] â ī¸ [UpdateInstanceOperation] There is no data to send. Aborting...
2022-07-05 17:38:04:757 [MobileMessaging] â ī¸ [CreateInstanceOperation] There is no registration data to send. Aborting...
2022-07-05 17:38:04:760 [MobileMessaging] đ [MessagePostingOperation] started...
2022-07-05 17:38:04:760 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:761 [MobileMessaging] đŦ Using cached value <NSThread: 0x281793c80>{number = 9, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:761 [MobileMessaging] đ [MessagePostingOperation] nothing to send...
2022-07-05 17:38:04:761 [MobileMessaging] đ [MessagePostingOperation] finished with errors: []
2022-07-05 17:38:04:763 [MobileMessaging] đ [LocalMessageFetchingOperation] Retrieved 0 messages from notification center.
2022-07-05 17:38:04:763 [MobileMessaging] đ [MMKeychain] get internalId "cdaf7a55-befe-4f94-b06b-e527a2ddef5b"
2022-07-05 17:38:04:763 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:763 [MobileMessaging] đ [ApnsRegistrationManager] Registering...
2022-07-05 17:38:04:763 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:769 [MobileMessaging] đ [UserDataService] sync user data with server
2022-07-05 17:38:04:770 [MobileMessaging] đŦ Unarchived Optional(<MobileMessaging.MMUser: 0x283093210>) from /{path}/Library/Application Support/com.mobile-messaging.user
2022-07-05 17:38:04:770 [MobileMessaging] đŦ Setting cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} <MobileMessaging.MMUser: 0x283093210> /{path}/Library/Application Support/com.mobile-messaging.user
2022-07-05 17:38:04:776 [MobileMessaging] đ [LocalMessageFetchingOperation] finished with errors: []
2022-07-05 17:38:04:776 [MobileMessaging] đ [MMMessageHandler] abort messages handling [], service running true
2022-07-05 17:38:04:782 [MobileMessaging] đŦ Unarchived Optional(<MobileMessaging.MMUser: 0x2830932a0>) from /{path}/Library/Application Support/com.mobile-messaging.dirty-user
2022-07-05 17:38:04:782 [MobileMessaging] đŦ Setting cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} <MobileMessaging.MMUser: 0x2830932a0> /{path}/Library/Application Support/com.mobile-messaging.dirty-user
2022-07-05 17:38:04:783 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:783 [MobileMessaging] đ [MobileMessaging] Service started with subservices: ["UserDataService": <MobileMessaging.UserDataService: 0x280c01830>, "MMMessageHandler": <MobileMessaging.MMMessageHandler: 0x2826aa880>, "InstallationDataService": <MobileMessaging.InstallationDataService: 0x280c02130>, "BaseUrlManager": <MobileMessaging.BaseUrlManager: 0x2817b3440>, "UserSessionService": <MobileMessaging.UserSessionService: 0x2829d5f80>, "NotificationsInteractionService": <MobileMessaging.NotificationsInteractionService: 0x2817be000>, "EventsService": <MobileMessaging.EventsService: 0x2826ac300>]
2022-07-05 17:38:04:786 [MobileMessaging] đ [SeenStatusSendingOperation] There is no non-seen meessages to send to the server. Finishing...
2022-07-05 17:38:04:787 [MobileMessaging] đ [SeenStatusSendingOperation] finished: []
2022-07-05 17:38:04:787 [MobileMessaging] đ [MessageFetchingOperation] Starting operation...
2022-07-05 17:38:04:787 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817e04c0>{number = 15, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:788 [MobileMessaging] đ [MessageFetchingOperation] Found Optional(0) not reported messages. Optional(0) archive messages.
2022-07-05 17:38:04:797 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817e04c0>{number = 15, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:812 [MobileMessaging] đ [DynamicBaseUrlHTTPSessionManager] Sending request:
2022-07-05 17:38:04:818 [MobileMessaging] đ [DynamicBaseUrlHTTPSessionManager] Response received
2022-07-05 17:38:04:818 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817e29c0>{number = 16, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:819 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817e29c0>{number = 16, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:826 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817e29c0>{number = 16, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:827 [MobileMessaging] đŦ Setting cached value <NSThread: 0x2817e29c0>{number = 16, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:827 [MobileMessaging] đŦ Archiving <NSThread: 0x2817e29c0>{number = 16, name = (null)} at /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:04:831 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817e29c0>{number = 16, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:831 [MobileMessaging] đŦ Setting cached value <NSThread: 0x2817e29c0>{number = 16, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:831 [MobileMessaging] đŦ Archiving <NSThread: 0x2817e29c0>{number = 16, name = (null)} at /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:835 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817e29c0>{number = 16, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:04:835 [MobileMessaging] đ [UpdateInstanceOperation] successfully synced
2022-07-05 17:38:04:835 [MobileMessaging] đ [UpdateInstanceOperation] finished with errors: []
2022-07-05 17:38:04:835 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817e29c0>{number = 16, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:05:120 [MobileMessaging] âšī¸ [ApnsRegistrationManager] Application did register with device token {##token##}
2022-07-05 17:38:05:120 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.dirty-installation
2022-07-05 17:38:05:120 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.dirty-installation
2022-07-05 17:38:05:120 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.dirty-installation
2022-07-05 17:38:05:120 [MobileMessaging] đŦ Setting cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} <MobileMessaging.MMInstallation: 0x1058a8d90> /{path}/Library/Application Support/com.mobile-messaging.dirty-installation
2022-07-05 17:38:05:120 [MobileMessaging] đŦ Archiving <NSThread: 0x2817ad940>{number = 8, name = (null)} at /{path}/Library/Application Support/com.mobile-messaging.dirty-installation
2022-07-05 17:38:05:126 [MobileMessaging] đ [InstallationDataService] sync installation data with server...
2022-07-05 17:38:05:126 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.installation
2022-07-05 17:38:05:161 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.dirty-installation
2022-07-05 17:38:05:162 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.internal-data
2022-07-05 17:38:05:164 [MobileMessaging] đŦ Using cached value <NSThread: 0x2817ad940>{number = 8, name = (null)} /{path}/Library/Application Support/com.mobile-messaging.internal-data
Hi @imkrishh, we need more info, could you please provide pushRegistrationId on which you are trying to send a notification via support@infobip.com and put a link to this issue on github.
Hi,
I migrated mobile-messaging-react-native-plugin to the latest version(6.3.3) that got released recently.
system logs
MobileMessaging started
Tested all types of push notifications on both Android and iOS but none of the Notifications are getting received in the mobile App.
React-Native :- 0.65.1 Android :- 11,12 iOS :- 14,15 mobile-messaging-react-native-plugin :- 6.3.3