Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property 'getPermissionSubscriptionState' does not exists on type 'OneSignal' #200

Closed
AntonioMenti opened this issue Jun 19, 2017 · 1 comment

Comments

@AntonioMenti
Copy link

AntonioMenti commented Jun 19, 2017

Good Morning,

i've created an ionic 3 app with One Signal. Notification correctly received but i can't access getPermissionSubscriptionState method.

ionic info tell me that i have the latest version installed.
Costructor

private _SIGNAL : OneSignal

and then:
this._SIGNAL.getPermissionSubscriptionState() .then((msg) { console.log(JSON.stringify(msg)); });

ionic info command:

`global packages:

@ionic/cli-utils : 1.4.0
Cordova CLI      : 6.5.0
Ionic CLI        : 3.4.0

local packages:

@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-cordova       : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms               : android 6.1.2
Ionic Framework                 : ionic-angular 3.4.2

System:

Node       : v6.7.0
OS         : Windows 7
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 3.10.3`

Any ideas? What's i'm wrong?

@jkasten2
Copy link
Member

@AntonioMenti This is a new function that doesn't have it's TypeScript definitions released yet. Please see the following thread for updates on it's release.
danielsogl/awesome-cordova-plugins#1678
https://github.com/ionic-team/ionic-native/releases

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants