ibm-bluemix-mobile-services/bms-clientsdk-cordova-plugin-push

Plugin Waiting Too Long to Request Alert Permission

Closed this issue · 3 comments

When running the hellopush cordova sample (and likely any application using this plugin) the application does not prompt the user to allow push notifications until it reaches the first line in the function hasPushEnabled() in CDVMFPPush.swift which is being used to check whether the user has allowed Push Notifications. The plugin then does not wait for the user response and immediately returns false which results in the PluginResult to show an error with the message "The notification was blocked by user". This will be shown before the user has time to respond to the alert permission prompt and will occur on first install every time.

I removed the code that blocks the notification. Should be working now

Fixed

Still facing the issue with ibm-mfp-push@1.0.13. Any solution please?