Code Monkey home page Code Monkey logo

cordova-plugin-newton's Introduction

cordova-plugin-newton

Newton Platform Cordova Plugin

Installation

iOS platform

  1. After installation of the plugin you have to change the Swift to objectiveC import header to the name of your project.

    For example:

    1. search for the following line in the file AppDelegate+notification.m

      #import "Newton_Cordova_Demo-Swift.h"

    2. change it to the name of the current project, for example if the project is called GetStyle:

      #import "GetStyle-Swift.h"

  2. 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

  3. 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

cordova-plugin-newton's People

Contributors

eatsjobs avatar mircoc avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.