android - GET_ACCOUNTS permission while using GCM - Why is this needed? -
i have app, push notifications implemented.
i want understand reason why need "get_accounts"(android.permission.get_accounts), while implementing gcm? users raising concerns permission. have used permission in manifest given in official site here.
how safe permission? , if remove this, manifest, push notifications work?
it uses existing connection google services. pre-3.0 devices, requires users set google account on mobile devices. google account not requirement on devices running android 4.0.4 or higher.
so reason requirement of permission
<uses-permission android:name="android.permission.get_accounts" />
to read google account.
read more gcm overview
google account login no longer needed gcm work. no need android.permission.get_accounts
permission.
if using gcm api googlecloudmessaging.register
), no longer need configure google account on android version. if using deprecated library (gcmregistrar.register
), still need google account on older versions (before ics).
more details @ https://groups.google.com/forum/#!topic/android-gcm/ecg-rfh-aso. similer thread why google account login required gcm work devices below 4.0.4 os?
Comments
Post a Comment