urbanairship-cordova-windows

0.0.10 • Public • Published

Urban Airship cordova plugin for Windows 10

Disclaimer!

I found the lack of Urban Airship plugin support for Windows disturbing! Damnit those 3 people deserve UA suuport! So I decided to write this plugin myself. The repo is still in development and this is a long learning process for myself, since I have never written a cordova plugin before. Any tips, PRs, comments are greatly appreciated!

Install

npm i urbanairship-cordova-windows --save

Usage

Ionic 2+

In your App.component.ts:
declare const UrbanAirshipWindows: any;

@Component({
    templateUrl: 'app.html'
})
export class MyApp implements OnInit {

    ngOnInit() {
        UrbanAirshipWindows.init('/path/to/airshupconfig.xml',
            (res) => console.log('UA setup!'),
            (error) => console.error(error)
        )
    }

    private enableNotifications(enable: boolean) {
        UrbanAirshipWindows.setUserNotificationsEnabled(enable,
            (res) => console.log('User notifications enabled!'),
            (error) => console.error(error)
        )
    }

}

Package Sidebar

Install

npm i urbanairship-cordova-windows

Weekly Downloads

1

Version

0.0.10

License

UNLICENSED

Last publish

Collaborators

  • mcabe