Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Google play device compatibility

Discussion in 'Android' started by Rilissimo, Sep 5, 2016.

  1. Rilissimo

    Rilissimo

    Joined:
    Mar 10, 2015
    Posts:
    13
    Hi devs! I'm having problems with the Android manifest, I'm just using the OneSignal services for push notifications, and their sdk required some manifest permissions, but these permissions ilimit the compatibility of the device only to 590, without these permissions become compatible with 11000 +, someone can help me figure out which of these permissions limits compatible device? Thanks!

    • android.permission.ACCESS_NETWORK_STATE
    • android.permission.INTERNET
    • android.permission.READ_EXTERNAL_STORAGE
    • android.permission.RECEIVE_BOOT_COMPLETED
    • android.permission.VIBRATE
    • android.permission.WAKE_LOCK
    • android.permission.WRITE_EXTERNAL_STORAGE
    • com.anddoes.launcher.permission.UPDATE_COUNT
    • com.google.android.c2dm.permission.RECEIVE
    • com.htc.launcher.permission.READ_SETTINGS
    • com.htc.launcher.permission.UPDATE_SHORTCUT
    • <Bundle_Identifier>.permission.C2D_MESSAGE
    • com.majeur.launcher.permission.UPDATE_BADGE
    • com.sec.android.provider.badge.permission.READ
    • com.sec.android.provider.badge.permission.WRITE
    • com.sonyericsson.home.permission.BROADCAST_BADGE
    with only the authorizations below it becomes compatible with 11000+ devices
    • android.permission.ACCESS_NETWORK_STATE
    • android.permission.INTERNET
    • android.permission.READ_EXTERNAL_STORAGE
    • android.permission.WRITE_EXTERNAL_STORAGE
    • com.google.android.c2dm.permission.RECEIVE
    And that's the OneSignal manifest

    Code (CSharp):
    1. <!--
    2.    WARNING: Do NOT Modify! Changes will be overwritten by the OneSignal plugin.
    3.             Make your changes to Assets/Plugins/Android/AndroidManifest.xml instead.
    4. -->
    5.  
    6. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    7.     package="com.onesignal.onesignalsdk"
    8.     android:versionCode="1"
    9.     android:versionName="1.0" >
    10.  
    11.     <permission android:name="<Bundle_Identifier>.permission.C2D_MESSAGE" android:protectionLevel="signature" />
    12.     <uses-permission android:name="<Bundle_Identifier>.permission.C2D_MESSAGE" />
    13.     <application>
    14.       <receiver
    15.             android:name="com.onesignal.GcmBroadcastReceiver"
    16.             android:permission="com.google.android.c2dm.permission.SEND" >
    17.             <intent-filter>
    18.                 <action android:name="com.google.android.c2dm.intent.RECEIVE" />
    19.                 <category android:name="<Bundle_Identifier>" />
    20.             </intent-filter>
    21.         </receiver>
    22.     </application>
    23. </manifest>
     
    Last edited: Sep 5, 2016
  2. Rilissimo

    Rilissimo

    Joined:
    Mar 10, 2015
    Posts:
    13
  3. JKasten

    JKasten

    Joined:
    Apr 11, 2013
    Posts:
    23
    @Rilissimo I am work at OneSignal and we haven't seen any reports of this. The devices are normally limited by
    uses-feature entries in the AndroidManifest.xml. uses-permission entries are shown to the user when they install your app but doesn't limit the number of devices.

    Did you make any other changes when you add OneSignal to your project? If you can send your APK to OneSignal support they can check your compiled AndroidManifest.xml for what the issue might be.
     
    Last edited: Sep 6, 2016
  4. Rilissimo

    Rilissimo

    Joined:
    Mar 10, 2015
    Posts:
    13
    I just deleted the OneSignal SDK and i get all devices avaliable, where i can contact the OneSignal support? thanks