Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue anyway. OK

Unity is best tool for its support for multiple platforms. But in WebGL for android it creates some exception warning.

Problem:

When you run WebGL project on website. It works fine but when you open it on Mobile device it shows a warning Message.

 

“Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue anyway. OK”

Solution:

This is a warning message embedded in your code by unity. If you want to remove this warning message from your app then you have to remove this exception check code from your unity loader file.

 

So Lets Test this Example.

 

When you build your project in WebGL, a complete folder is created having multiple files in it.

Basically two folders and an index file, Something like this.

Now you have to find unityLoader.JS file. It is inside Build folder.

Now open this “UnityLoader” file in any text editor. I am gonna open it in Notepad++.

Select all code and copy it.         //  [Select all(Ctrl + A) Copy (Ctrl+ C)]

Now open this link.

https://beautifier.io/

A new webpage will open, Something like that

Paste all your “UnityLoader”code into this section.

Now click on “Beautify code“ button. All of your code will be beautified.

Now copy all this code and paste it back to your UnityLoader.JS file.

Code is completely beautified. Now you have to remove “exception check” from the code.

Now search for the error code. To search error code press “Ctrl+F”. A new dialog box will open and type your error message in to it. “Please note that Unity WebGL”

Now finally you fond your error exception function.

Remove all the code from the function body of compatibility check. And type “t( );” in it.

Save your file and you are done with it.

 

Run your index file . You will not receive this exception again.

 

Hope this tutorial will help you a lot. If you feel any type of problem feel free to ask in comment section below.

Thanks.

Dear User,

We would love to help people and tried our best, solving your problems with articles like this.

Now we want something from you, if possible !

Download our games from playstore, positive review and put 5 star rating. and share in your circle

If you are blogger or youtuber, or have audience. Kindly write about our apps and share links.

36 comments

  1. Chris Alfonso

    i`ve done all the steps but i still get it on mobile please help me thanks!

    1. naisky

      After making a new build update code in it.

      If you still face issues. Contact me at nabeelahmed@naisky.com

  2. Charlie

    Thank you, naisky!

    I can’t believe there aren’t more comments, here! Great job!

    1. naisky

      Mine Pleasure ! Charlie

  3. Freebies

    I have really learned result-oriented things as a result of your blog. One other thing I’d prefer to say is that often newer laptop operating systems are inclined to allow much more memory for use, but they in addition demand more storage simply to function. If someone’s computer can’t handle much more memory plus the newest program requires that storage increase, it may be the time to buy a new Laptop. Thanks

  4. Ariel Valley

    There are no words to show my appreciation!

    1. naisky

      Thanks

  5. Freebies

    Very efficiently written post. It will be useful to anybody who usess it, as well as yours truly :). Keep doing what you are doing – looking forward to more posts.

    1. naisky

      Thanks

  6. Corina Byrge

    Hi, after reading this awesome piece of writing i am as well delighted to share my familiarity here with colleagues.

    1. naisky

      Thanks

  7. Kristina Long

    I’m really looking forward to read more on this topic.

  8. Hairstyles

    Does your blog have a contact page? I’m having a tough time locating it but, I’d like to send you an e-mail. I’ve got some ideas for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it grow over time.

  9. Atabek

    Helped me a lot! Thank you!

  10. Colin Kratt

    Hey, This article posted at this website is really good.

  11. Tinhoc 10B

    good article. Your knowledge is definitely intensive. I enjoyed reading the article on your Website

  12. Sharilyn

    Appreciating the persistence you put into your website and in depth information you present. It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Excellent read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.|

  13. Jess

    always i used to read smaller articles that as well clear their motive, and that is also happening with this paragraph which I am reading now.|

  14. Domenic

    This site was… how do you say it? Relevant!! Finally I’ve found
    something which helped me. Many thanks!

  15. Free Stuff

    Thank you for sharing excellent informations. Your web-site is very cool. I am impressed by the details that you抳e on this website. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for more articles. You, my pal, ROCK! I found simply the information I already searched everywhere and just could not come across. What a perfect website.

  16. Ebony Montore

    Spot on with this write-up, I absolutely believe that this web site needs much more attention. I’ll probably be back again to read through more, thanks for the info!

  17. Quinton Kamelamela

    I wanted to thank you for this fantastic read!! I definitely enjoyed every little bit of it. I’ve got you saved as a favorite to check out new stuff you post…

  18. Rufus Spinetti

    There is certainly a great deal to find out about this subject. I really like all of the points you have made.

  19. website hosting

    Everything is very open with a clear clarification of the issues.
    It was really informative. Your website is useful.
    Many thanks for sharing!

  20. web hosting sites

    Thank you a bunch for sharing this with all of us you actually realize what
    you are talking about! Bookmarked. Please additionally consult with my site =).
    We may have a hyperlink change agreement between us

  21. Kendall

    I love your blog.. very nice colors & theme. Did you make this website yourself or did
    you hire someone to do it for you? Plz answer back as I’m looking to construct my own blog
    and would like to find out where u got this from. thank you

  22. 키스방

    Wonderful illustrated information. I thank you about that.
    No doubt it will be very useful for my future projects. Would like to see some other posts on the same subject!

  23. Lester

    If some one needs expert view about blogging and site-building then i
    recommend him/her to pay a visit this weblog, Keep up the nice job.

  24. slot games online

    Very quickly this site will be famous among all blogging users, due to it’s nice content

  25. 더킹카지노

    You could certainly see your skills in the
    article you write. The world hopes for more passionate writers like you who aren’t afraid to
    say how they believe. At all times follow your heart.

  26. 바카라사이트

    I have read several excellent stuff here.
    Certainly value bookmarking for revisiting. I surprise how so much effort you set to make this kind of
    excellent informative website.

  27. Camilla

    great publish, very informative. I’m wondering why the opposite experts
    of this sector don’t understand this. You should continue your writing.
    I am sure, you have a huge readers’ base already!

Leave a Reply

Your email address will not be published. Required fields are marked *

WhatsApp chat