0.0.10 • Published 7 years ago

urbanairship-cordova-windows v0.0.10

Weekly downloads
8
License
UNLICENSED
Repository
github
Last release
7 years ago

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)
        )
    }

}
0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago