Closed sunnylab96 closed 7 months ago
Hi @sunnylab96 could you please put full stack trace and try to reproduce this scenario with Example app.
This error you provided, just means that cryptor migration isn't setup, just informative one, however we might remove it if it confuses.
Let me also clarify what does it mean "I can not receive tapped notification event when the app is closed"? Does it mean that app was swiped off and then user tapped on received notification and event "notificationTapped" wasn't received?
I'll need also the code for how are you calling init method and subscribing to notifications.
Hi @riskpp , yes, I could not receive the notificationTapped event when swiped off the app, here is how I initiate the mobile SDK and subscribe for the notificationTapped event:
if (Platform.OS === 'ios' || !configuration.geofencingEnabled) {
mobileMessaging.init(
{
applicationCode:
'xxxxxxxxxxxxxxxx',
ios: {
notificationTypes: ['alert', 'badge', 'sound'],
logging: true,
},
defaultMessageStorage: true,
inAppChatEnabled: true,
geofencingEnabled: false,
},
() => {
console.log('Mobile messaging initialized');
mobileMessaging.subscribe('notificationTapped', message => {
console.log('Notification tapped event received!');
});
},
error => console.log('An error occur: ', error),
);
}
};
You can try to subscribe earlier, as done in Example app and where are you calling mobileMessaging.init
?
@sunnylab96 did the answer help you? We are going to close it in a week if no activity
Closing due to inactivity.
Hi! I can not receive tapped notification event when the app is closed. I'm using SDK 8.0.0 on Android 12, getting this error when tap on the notification message: