From 68884671116c9f1e23de0b9cba583a2a008516ed Mon Sep 17 00:00:00 2001 From: Simon MacDonald Date: Tue, 27 Feb 2018 14:06:34 -0500 Subject: [PATCH] Issue #2051: Plugin not working on android 4.4 but working in 5,6 and 7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ⬆️ Bump dependency for cordova-android to 7.1.0 which forces the use of version 3.0.1 gradle tools. --- package.json | 14 +++++++------- plugin.xml | 8 ++++++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 5678ab9b9..6db392e70 100644 --- a/package.json +++ b/package.json @@ -13,12 +13,7 @@ }, "cordova": { "id": "phonegap-plugin-push", - "platforms": [ - "ios", - "android", - "windows", - "browser" - ] + "platforms": ["ios", "android", "windows", "browser"] }, "keywords": [ "ecosystem:cordova", @@ -52,10 +47,15 @@ "cordova-android": ">=6.3.0", "cordova": ">=7.1.0" }, - "2.1.2": { + "<2.2.0": { "cordova-ios": ">=4.5.0", "cordova-android": ">=6.3.0", "cordova": ">=7.1.0" + }, + "2.2.0": { + "cordova-ios": ">=4.5.0", + "cordova-android": ">=7.1.0", + "cordova": ">=7.1.0" } } }, diff --git a/plugin.xml b/plugin.xml index b7fdb6fb7..398c449b4 100755 --- a/plugin.xml +++ b/plugin.xml @@ -1,5 +1,9 @@ - + PushPlugin This plugin allows your application to receive push notifications on Android, iOS and Windows devices. Android uses Firebase Cloud Messaging. iOS uses Apple APNS Notifications. Windows uses Microsoft WNS Notifications. MIT @@ -8,7 +12,7 @@ - +