Search Unity

[Released] Android Native Pro

Discussion in 'Assets and Asset Store' started by stanislav-osipov, Sep 5, 2018.

  1. WaseemAyub

    WaseemAyub

    Joined:
    Apr 23, 2015
    Posts:
    1
    HI i want to turn on/off Mobile data can anyone help
     
  2. Keymonso

    Keymonso

    Joined:
    Dec 24, 2019
    Posts:
    2
    Hi @erre-rox @stanislav-osipov, I am wondering if you guys have already fix it. I also have the same issue even I am using the latest version.
    Every time I try to get access to the gallery it never ask for read/writer external storage permissions and I have to turn on the permissions outside the app manually.
    In fact I did get a warning "Plugin 'Assets/Plugins/StansAssets/NativePlugins/AndroidNativePro/Android/Core/an_library.bundle' is not supported on Android, please deselect it in Plugin Inspector" while building it.
    If you have any solutions or ideas I would be really appreaciate it! Thanks!
     
    Last edited: Jan 7, 2022
  3. karios

    karios

    Joined:
    Nov 15, 2012
    Posts:
    12
    I am getting a DEVELOPER_ERROR when trying to login with Google Play. It worked at some point, no idea what is wrong now.
    This is what I am getting:

    2022/02/19 19:51:12.607 20859 18009 Debug AndroidNative Unity: [Async] Sent to Unity ->: {"m_error":{"m_code":10,"m_message":"DEVELOPER_ERROR"}}

    I have added the Game Resources correctly (achievements and leaderboards are shown in the Google Play tab of the plugin and the App Id is correct also.
    The requirements look like this:
    upload_2022-2-19_19-52-49.png

    In the Manifest Permissions I am only asking for android.permission.INTERNET

    What am I missing?
     
  4. karios

    karios

    Joined:
    Nov 15, 2012
    Posts:
    12
    I am trying to user the Social plugin for Android and all isAppInstalled return false, even though on my device all apps are installed. And of course, trying to share on any of the 4 fail.
    Any ideas?

    This is what I am getting:

    2022/02/19 21:06:16.865 24453 8705 Debug AndroidNative Unity: [Sync] Sent to Unity ->:
    2022/02/19 21:06:16.865 24453 8705 Debug AndroidNative Unity: Sent to Java -> AN_PackageManager.GetPackageInfo :: {"m_classId":1,"m_instanceId":""} | com.whatsapp | 1
    2022/02/19 21:06:16.866 24453 8705 Debug AndroidNative Unity: [Sync] Sent to Unity ->:
    2022/02/19 21:06:16.866 24453 8705 Debug AndroidNative Unity: Sent to Java -> AN_PackageManager.GetPackageInfo :: {"m_classId":1,"m_instanceId":""} | com.twitter.android | 1
    2022/02/19 21:06:16.867 24453 8705 Debug AndroidNative Unity: [Sync] Sent to Unity ->:
    2022/02/19 21:06:16.867 24453 8705 Debug AndroidNative Unity: Sent to Java -> AN_PackageManager.GetPackageInfo :: {"m_classId":1,"m_instanceId":""} | com.instagram.android | 1
    2022/02/19 21:06:16.867 24453 8705 Debug AndroidNative Unity: [Sync] Sent to Unity ->:

    And this is what I am using:

    bool isAppInstalled = false;
    isAppInstalled = AN_TwitterSharing.IsAppInstalled;
    isAppInstalled = AN_FacebookSharing.IsAppInstalled;
    isAppInstalled = AN_InstagramSharing.IsAppInstalled;
    isAppInstalled = AN_WhatsappSharing.IsAppInstalled;
     
  5. Ardito92ITA

    Ardito92ITA

    Joined:
    Apr 1, 2014
    Posts:
    37
    I have the same problem.
    Have you found a solution?
     
  6. BenoitFreslon

    BenoitFreslon

    Joined:
    Jan 16, 2013
    Posts:
    166
    Hello I got this error on Android 12 when I setup Notifications in my app.

    Did you manage to fix this?


    Code (CSharp):
    1. UnityEngine.AndroidJavaException: java.lang.IllegalArgumentException: com.benoitfreslon.thinkoutsidethebox: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
    2.     Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
    3.       at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0
    4.       at UnityEngine.AndroidJavaObject._CallStatic (System.String methodName, System.Object[] args) [0x00000] in <00000000000000000000000000000000>:0
    5.       at SA.Android.App.AN_NotificationManager.Schedule (SA.Android.App.AN_NotificationRequest request) [0x00000] in <00000000000000000000000000000000>:0
    6.       at EB_Notifications.scheduleNotification (NotificationData notification) [0x00000] in <00000000000000000000000000000000>:0
    7.       at EB_Notifications.scheduleDailyNotification () [0x00000] in <00000
     
  7. yoo-sun-hwa

    yoo-sun-hwa

    Joined:
    Oct 21, 2015
    Posts:
    1
    @stanislav-osipov
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/auth/api/signin/GoogleSignIn;
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/GoogleApiAvailability;
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/gson/Gson;

    How do I solve this problem?

    Where do I add GooglePlay Binary Dependencies?
     
  8. ArnoldRauers_Tinytouchtales

    ArnoldRauers_Tinytouchtales

    Joined:
    Jan 25, 2015
    Posts:
    33
    I've already contacted the support but no luck so far.
    Since Nov 1st, 22 Google Play requires Billing Library 4 or newer. Since the latest Android Native Pro is using 3.0.1 you can no longer upload new games or update with this.
    I fixed my issue for now by using Unity's build in iAp system, but I rather would continue to use this plugin since I have it in 6 live game. Please update your plugin asap: @stanislav-osipov