Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

interaction with Android/IOS native?

Discussion in 'Project Tiny' started by kuailaiwanli, Mar 12, 2019.

  1. kuailaiwanli

    kuailaiwanli

    Joined:
    Apr 22, 2013
    Posts:
    47
    could tiny mode interact with native? example:I want to invoke android "toast" function by ".aar" sdk
     
    Kamerger likes this.
  2. Kamerger

    Kamerger

    Joined:
    Dec 27, 2014
    Posts:
    4
    I am also interested in this topic. I locally run the tiny game from the ios application through WKWebView. Can I somehow interact with application from the game and vice versa?
     
  3. Zoelovezle

    Zoelovezle

    Joined:
    Aug 7, 2015
    Posts:
    54
    I have created a small cross communication functions for WKWebView in iOS and Webview in Android and as well communication with browsers by creating dynamic functions in runtime and injecting javascript files after my game is initialized .
    Have a look at Plugin folder & Communication.ts . For creating those functions in iOS/Android you can refer this (objective-c/java) or this (swift)
     
    sniffle63 likes this.