0

I am using this plugin : https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin and I want to send push notification to both iOS and Android devices.

The scenario is this :

I open the app and connect to an account, if the connection works I enable push : I can receive a notification on both iOS and Android. exact target status : OPT_IN for both

I then disconnect and disable push : I cannot receive push notifications, which is expected. exact target status : OPT_OUT for both

Now I connect again to the same account : I can send notifications to Android but not iOS. exact target status : OPT_IN for Android but still OPT_OUT for iOS.

What am I missing, does the iOS platform works differently ?

EDIT to answer these questions :

When you say you disconnect and connect what do you mean by that and how are you doing that?

I am integrating the plugin in an already existing app, I use the connect and disconnect method from that app, I added the enable/disable push method from the plugin into those methods.

How are you reading the flags OPT_IN and OPT_OUT? From where and when?

I go to the MobilePush menu / mobile push contact list / Membership :

Membership menu

1 Answer 1

0
  1. When you say you disconnect and connect what do you mean by that and how are you doing that?
  2. How are you reading the flags OPT_IN and OPT_OUT? From where and when?
  3. Just so you know when you enable push and disable push in an app, and move the app to background state, a registration call is made 60 seconds after you move to background state. There is also some time needed before the MarketingCloud will detect and process the change as well. Usually another few minutes on top of that. Can you verify that you are testing in this manner?

Thanks!

6
  • Thanks for the answers, what does the registration call do ?
    – elamy
    Feb 23, 2018 at 9:13
  • I do wait several minutes before sending a notification when I enable or disable the push notification. It works well on Android, the problem only appears on iOS. We send the notifications at the exact same time for both platforms.
    – elamy
    Feb 23, 2018 at 9:39
  • The registration call updates the MarketingCloud with the values from the Push SDK plugin. This includes AppId, AccessToken, Tags, Attributes, etc; If you make a change to any of the above, or opt out of pushes by way of MCCordovaPlugin.disablePush, a call is made when you move to background with the app and within a few minutes those values should be reflected in the MC. I would also make sure that you are checking your notification settings on the device to make sure you are not trying to execute a push with the notifications disabled.
    – Tom Brooks
    Mar 7, 2018 at 21:06
  • Did you happen to get answers to the above questions?
    – Tom Brooks
    Mar 7, 2018 at 21:06
  • I edited my question to answer your questions.
    – elamy
    Mar 8, 2018 at 8:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .