Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by phoenixrider · Dec 12, 2018 at 08:17 PM · androidgoogle playtestingpermissionsobb

OBB storage permission dialog not showing up on android v8.0, google beta testing

Hello everyone,

I have been dealing with this obb issue for over a week now getting quite depressive :(

All info: I am beta testing my game, with an LG G5 v8.0, since I am uploading the game on google play, I have no choice but to upload the game as a split binary, with the apk and the obb file individually, since the apk is biggger than the 150mb apk limit of google, but doing it this way require to ask the permission of the user in order to access the obb in the storage, but unfortunately it is not working for me.

I have followed and tried all the solution on the forum for this issue: https://forum.unity.com/threads/apk-with-expansion-file-obb-fails-to-load-the-second-scene-until-the-phone-has-been-restarted.465714/page-2

I have added the line:

"meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="true"/" "uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /"
"uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /"

in my android manifest and have tried @DaReign solution, it got me until the ask for permission and once I press the accept button, which is suppose to trigger the android dialog to get pop up(the allow/deny UI), nothing happen, the accept button call for the OnGrantButtonPress().

Image of my UI: alt text

Here are all my line of codes: Code (CSharp):

[code=CSharp]

     //UI to access android dialogue permission
     public GameObject requestpermission;
  
     //UI to acess button to load the next scene
     public GameObject loadnextscene;
  
     private const string STORAGE_PERMISSION = "android.permission.READ_EXTERNAL_STORAGE";
  
     void Start () {
        
         requestpermission.SetActive (false);
         loadnextscene.SetActive (false);
  
         CheckPermissions();
     }
 
    //load next scene
    public void shownextscene(){
  
             SceneManager.LoadScene ("start page normal");
     }
  
    //close application if user refuse access
    public void hideaccess(){
  
         Application.Quit();
     }
  
    private bool MyCheckPermissions(){
         if (Application.platform != RuntimePlatform.Android){

             return true;
         }
  
         return AndroidPermissionsManager.IsPermissionGranted(STORAGE_PERMISSION);
     }
  
     public void CheckPermissions(){
  
         if (!MyCheckPermissions ()) {
  
             requestpermission.SetActive (true); //pop UI with accept or refuse button
         }
     }
  
     //if user press accept button, this method get called
     public void OnGrantButtonPress()
     {
         AndroidPermissionsManager.RequestPermission(new []{STORAGE_PERMISSION}, new                  
         AndroidPermissionCallback(
             grantedPermission =>
             {
  
               // The permission was successfully granted, restart the change avatar routine
               requestpermission.SetActive (false); //close UI
               loadnextscene.SetActive (true);        //pop button
              
             },
             deniedPermission =>
             {
                 // The permission was denied
                 hideaccess();
             },
             deniedPermissionAndDontAskAgain =>
             {
                 //honestly dont care about this at this point
                 // The permission was denied, and the user has selected "Don't ask again"
             }));
     }
 } 

} [/code]

Also restarting the device make no difference.

The device I am testing on is LG G5 version 8.0 with Unity 2017.1.1.f1 It seem like I cant reach the Obb file no matter what I do.

Any help would be greatly appreciated :).

Thank you

-Phoenixrider

45307219-1091343080990320-6117027503979626496-n-mi.jpeg (496.4 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

215 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Use OBB old version with new apk [Android] 1 Answer

How to include obb extension files in Google play developer console 0 Answers

How do you test IAP on Google Play? (noob in trouble) 2 Answers

Can't find OBB when downloaded from Play Store on some devices (4.3.1) 1 Answer

Help on uploading 80mb Apk+Obb on Google Play 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges