cordova-plugin-newton
v0.1.6cordova-plugin-newton
[!!!] This repository has been deprecated
Newton Platform Cordova Plugin
Installation
iOS platform
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
Android platform
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>
Contribute
Publish new revision
$ git commit -m "sync ver plugin.xml" plugin.xml
$ npm version patch
$ npm publish
$ git push
$ git push --tags
Launch demo project
$ cd demo
$ cordova run -device
Modify demo source
$ cd demo
$ npm install monaca webpack cordova -g
$ monaca transpile
Preview demo in desktop browser
$ monaca preview
Metadata
- Apache 2.0
- Whatever
- [email protected]
- released 2/6/2017