I've implemented an Ionic test application using the new bms-push cordova plugin.
It works fine on Android.
However, when launching the app on iOS, it immediately fails with:
fatal error: unexpectedly found nil while unwrapping an Optional value
The error occurs in the didReceiveRemoteNotificationOnLaunch
function of the CDVBMSPush
class.
If I comment out the following line in the AppDelegate.m
[[CDVBMSPush sharedInstance] didReceiveRemoteNotificationOnLaunchWithLaunchOptions:launchOptions];
then the app starts properly.
Any suggestion to fix the problem please? Thx