Newton Platform Cordova Plugin
-
After installation of the plugin you have to change the Swift to objectiveC import header to the name of your project.
For example:
-
search for the following line in the file AppDelegate+notification.m
#import "Newton_Cordova_Demo-Swift.h"
-
change it to the name of the current project, for example if the project is called GetStyle:
#import "GetStyle-Swift.h"
-
-
After installation of the plugin you also have to change the Objective-C Bridging Header to:
$(PROJECT_DIR)/$ (PROJECT_NAME)/Plugins/cordova-plugin-newton/NewtonPlugin-Bridging-Header.h You can find this setting in Build Setting -> Swift Compiler – General -> Objective-C Bridging Header -
Change project properties in XCode: go to Capabilities and set Push Notification to ON
You need to add the plugin cordova-plugin-settings-hook and the following configuration on config.xml file inside the platform android section:
<platform name="android">
<preference name="android-applicationName" value="com.buongiorno.newton.cordova.NewtonApplication" />
...
</platform>
$ git commit -m "sync ver plugin.xml" plugin.xml
$ npm version patch
$ npm publish
$ git push
$ git push --tags
$ cd demo
$ cordova run -device
$ cd demo
$ npm install monaca webpack cordova -g
$ monaca transpile
$ monaca preview