Issues with OneSignal

I’ve an app built with PGB that use OneSignal to send notification push.
Now I’m trying to migrate the app to VoltBuilder but when I open the App the first time, no authorisation message for push notifications is shown to me.
I’m using OneSignal with the setup for PGB (last version of the plugin, 2.10.1):

Do I need to use another library to setup?

Are you running on Android or iOS?

I’m currently testing with iOS.

This is likely not something caused by VoltBuilder, but a combination of new versions of Cordova, iOS and Xcode (and the plugins themselves). PhoneGap is been locked in a the past for a while. The world has moved on.

As I reported in the “InAppBrowser” post, I’ve fixed including “cordova.js” in every single page of the app:

<script src="cordova.js" type="text/javascript"></script>
<script src="js/"></script>
<script type="text/javascript" src="PushNotification.js"></script>
<script type="text/javascript" src="js/variables.js"></script>
<script type="text/javascript" src="js/onesignal.js"></script>
<script type="text/javascript" src="Globalization.js"></script>
<script type="text/javascript" src="js/index.js"></script>

Cordova expects Single Page Apps. If you have multiple pages, you need to include the cordova.js on each page.