You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Our type file says users should pass an object string to `OneSignal. postNotification`
* but in iOS we are calling `postNotification` - the iOS native code expects `NSDictionary`
* Instead use native `postNotificationWithJsonString`, which is what react native onesignal SDK also uses
* #757
* Our type file says users should pass an object string to `OneSignal. postNotification`
* but in iOS we are calling `postNotification` - so the iOS native code expects `NSDictionary`
* Instead, let's use the native method `postNotificationWithJsonString`, which is what react native SDK also uses
* #757
OneSignal Cordova SDK version 3.0.1
The type definition says that notification data is passed as string:
OneSignal-Cordova-SDK/types/OneSignalPlugin.d.ts
Lines 189 to 196 in 5372e15
However, the iOS native code expects
NSDictionary
OneSignal-Cordova-SDK/src/ios/OneSignalPush.m
Lines 307 to 310 in 5372e15
OneSignal.postNotification
definition (OneSignal iOS SDK v3.9.1 as mentioned in release notes of OneSignal Cordova SDK v3.0.1):https://github.com/OneSignal/OneSignal-iOS-SDK/blob/fd06483b314f842c16e0a6f74dfb27a04dc7df66/iOS_SDK/OneSignalSDK/Source/OneSignal.h#L502-L504
Could you please fix this type definition?
The text was updated successfully, but these errors were encountered: