From 5ae97de41dce8b69236833c00b38b04456d7fa5f Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Wed, 10 Jun 2020 14:27:16 +0200 Subject: [PATCH] fix: use applicationId instead of PACKAGE_NAME if the cordova app has flavors (like debug and release version with different applicationId value), the PACKAGE_NAME value remains fixed to the value of the `id` in `config.xml`, and that causes problems when you try to install a different flavor of the app as there is another app (the other flavor) that already declared a push permission for that package name. By using the applicationId variable, each flavor will have it's own permission matching the application Id. This was fixed in other push plugins long ago, check https://github.com/phonegap/phonegap-plugin-push/blob/master/plugin.xml#L31 https://github.com/Azure/azure-mobile-engagement-cordova/blob/master/plugin.xml#L140 --- plugin.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.xml b/plugin.xml index 822f52bc..63a9be3e 100644 --- a/plugin.xml +++ b/plugin.xml @@ -38,8 +38,8 @@ - - + + @@ -50,7 +50,7 @@ - +