Native: tried calling OneSignal.startInit, but the OneSignal plugin is not installed.
main.js:59277 Install the OneSignal plugin: 'ionic plugin add onesignal-cordova-plugin’
main.js:59271 Native: tried calling OneSignal.inFocusDisplaying, but the OneSignal plugin is not installed.
main.js:59277 Install the OneSignal plugin: 'ionic plugin add onesignal-cordova-plugin’
main.js:59271 Native: tried calling OneSignal.handleNotificationReceived, but the OneSignal plugin is not installed.
main.js:59277 Install the OneSignal plugin: ‘ionic plugin add onesignal-cordova-plugin’
main.js:80797 EXCEPTION: Uncaught (in promise): plugin_not_installedErrorHandler.handleError @ main.js:80797
main.js:80802 ORIGINAL STACKTRACE:ErrorHandler.handleError @ main.js:80802
main.js:80803 Error: Uncaught (in promise): plugin_not_installed
at new Error (native)
I’m getting the same error after build for iOS. I build, then install on my test iPad and the console reports:
Native: tried calling OneSignal.startInit, but the OneSignal plugin is not installed.
Install the OneSignal plugin: 'ionic plugin add onesignal-cordova-plugin'
TypeError: this.oneSignal.startInit('APPIDSANITIZED', 'GOOGLEPROJECTSANITIZED').endInit is not a function. (In 'this.oneSignal.startInit('APPIDSANITIZED', 'GOOGLEPROJECTSANITIZED').endInit()', 'this.oneSignal.startInit('APPIDSANITIZED', 'GOOGLEPROJECTSANITIZED').endInit' is undefined) — main.js:82860
(I pulled out my app ID and project number for security…)
The plugin works great on an Android build of the same project; device gets registered and I can receive push notifications.
I’ve uninstalled and reinstalled the plugin several times and removed/re-added the iOS platform to my project. All the plugin files are there, and like I mentioned, it builds fine for Android; not sure what to check for why iOS is reporting the plugin isn’t installed.
I have the same issue and I am on the latest app scripts - 1.3.7. Removing and adding the platform back did not solve the problem. Anybody managed to find a solution?
if using phonegap, is your plugin formatted like this in your project’s config.xml? <gap:plugin name="onesignal-cordova-plugin" spec="^2.1.1" source="npm" />
You have to have an apple developer account and an APNS Certificate through the Apple Dev Portal to use any plugins that access notifications (I think)