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

This plugin is a voilation against google policies, do not install this plugin #147

Open
nagthgr8 opened this issue Nov 4, 2020 · 2 comments

Comments

@nagthgr8
Copy link

nagthgr8 commented Nov 4, 2020

I recently got my app removed from the playstore due to violating Device & Network Abuse policy because the plugin cordova-plugin-app-update is used in my App.

This plugin does not seem to get uninstalled through command cordova plugin uninstall instead have to remove the platform andrioid & add it again quite a hell of work

I suggest admin to better discontinue this plugin & focus on something good of their hard work

@nosTa1337
Copy link

I have created a script for google version to remove the necessary packages. We do have some non google customers, therefore this plugin is still good :)

Package json:
"buildGoogle": "set GOOGLE=true && ionic cordova build android --prod --release",
"buildNonGoogle": "set UPDATE= && ionic cordova build android --prod --release "

`if(process.env.GOOGLE) {
var permissionsToRemove = [ "REQUEST_INSTALL_PACKAGES", "WRITE_EXTERNAL_STORAGE"];

var fs = require('fs');
var path = require('path');
var rootdir = "";
var manifestFile = path.join(rootdir, "platforms/android/app/src/main/AndroidManifest.xml");

fs.readFile( manifestFile, "utf8", function( err, data )
{
	if (err)
		return console.log( err );

	var result = data;
	for (var i=0; i<permissionsToRemove.length; i++)
		result = result.replace( "<uses-permission android:name=\"android.permission." + permissionsToRemove[i] + "\" />", "" );

	fs.writeFile( manifestFile, result, "utf8", function( err )
	{
		if (err)
			return console.log( err );
	} );
} );

}`

@Normie-Coder
Copy link

I have created a script for google version to remove the necessary packages. We do have some non google customers, therefore this plugin is still good :

nosTa1337, Just to confirm. If users are using the plugin (with the above scripts) then the users wont be able to automatically download the app if the users got the app from the google playstore but can automatically download the app if the app is from a non google store?

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

3 participants