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

Badge Plugin registerPermission returns "Plugin not installed" on iOS #1856

Closed
urm47 opened this issue Aug 1, 2017 · 2 comments
Closed

Badge Plugin registerPermission returns "Plugin not installed" on iOS #1856

urm47 opened this issue Aug 1, 2017 · 2 comments

Comments

@urm47
Copy link

urm47 commented Aug 1, 2017

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request

Current behavior:

Badge Plugin registerPermission returns "Plugin not installed".

Expected behavior:

Should return true or false

Steps to reproduce:

Install Badge Plugin, call registerPermission and run on iOS device
Related code:

this.badge.registerPermission().then((granted) => {})

Other information:

According to katzer/cordova-plugin-badge#98 the method registerPermission was renamed to requestPermission

This works:
(<any>window).cordova.plugins.notification.badge.requestPermission((granted) => {})

package.json info:

   "dependencies": {
        "@angular/common": "4.1.3",
        "@angular/compiler": "4.1.3",
        "@angular/compiler-cli": "4.1.3",
        "@angular/core": "4.1.3",
        "@angular/forms": "4.1.3",
        "@angular/http": "4.1.3",
        "@angular/platform-browser": "4.1.3",
        "@angular/platform-browser-dynamic": "4.1.3",
        "@ionic-native/badge": "^4.1.0",
        "@ionic-native/core": "3.12.1",
        "@ionic-native/splash-screen": "3.12.1",
        "@ionic-native/status-bar": "3.12.1",
        "@ionic/storage": "2.0.1",
        "cordova-ios": "^4.4.0",
        "cordova-plugin-badge": "^0.8.1",
        "cordova-plugin-console": "^1.0.5",
        "cordova-plugin-device": "^1.1.4",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.2",
        "cordova-plugin-whitelist": "^1.3.1",
        "ionic-angular": "3.6.0",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "3.0.0",
        "rxjs": "5.4.0",
        "sw-toolbox": "3.6.0",
        "zone.js": "0.8.12"
    },
    "devDependencies": {
        "@ionic/app-scripts": "2.1.3",
        "@ionic/cli-plugin-cordova": "1.5.0",
        "@ionic/cli-plugin-ionic-angular": "1.4.0",
        "ionic": "3.6.0",
        "typescript": "2.3.4"
    },
    "description": "An Ionic project",
    "cordova": {
        "plugins": {
            "cordova-plugin-badge": {},
            "cordova-plugin-console": {},
            "cordova-plugin-device": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-statusbar": {},
            "cordova-plugin-whitelist": {},
            "ionic-plugin-keyboard": {}
        },
        "platforms": [
            "ios"
        ]
    }

ionic info

cli packages:

    @ionic/cli-plugin-cordova       : 1.5.0 (/Users/urs/development/bid/node_modules/@ionic/cli-plugin-cordova)
    @ionic/cli-plugin-ionic-angular : 1.4.0 (/Users/urs/development/bid/node_modules/@ionic/cli-plugin-ionic-angular)
    @ionic/cli-utils                : 1.6.0 (/Users/urs/development/bid/node_modules/@ionic/cli-utils)
    ionic (Ionic CLI)               : 3.6.0 (/Users/urs/development/bid/node_modules/ionic)

global packages:

    Cordova CLI : 7.0.1 

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : ios 4.4.0
    Ionic Framework    : ionic-angular 3.6.0

System:

    Node       : v6.11.0
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.3 Build version 8E3004b 
    ios-deploy : 1.9.1 
    npm        : 3.10.10 
@fbrun
Copy link

fbrun commented Oct 5, 2017

Same error with ionic-native/badge v4.3.0
The method is registerPermission again

@dalezak
Copy link

dalezak commented Nov 10, 2017

I'm having the same problem using @ionic-native/badge 4.3.3.

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

4 participants