[英]Pass Data from Angular6 Micro App to Mobile Application
I have an application in Android (Kotlin) and iOS (Swift 4) that opens a micro app in a WebView which I made using Angular6. 我在Android(Kotlin)和iOS(Swift 4)中有一个应用程序,该应用程序在我使用Angular6制作的WebView中打开一个微型应用程序。
There is a button in my web app that enable users to sync a date to their respective calendar. 我的Web应用程序中有一个按钮,使用户可以将日期同步到各自的日历。
What is the best way to pass data from my web application to my native application? 将数据从Web应用程序传递到本机应用程序的最佳方法是什么?
If I understand your problem correctly you can try using Firebase Dynamic Links . 如果我正确理解了您的问题,则可以尝试使用Firebase动态链接 。 From inside the web app the users would select to sync the data then that will open the dynamic link which will bring them back into the native Android or iOS app. 用户可以从Web应用程序内部选择同步数据,然后打开动态链接,将其带回本机Android或iOS应用程序。 These dynamic links can store small amounts of data which you can read in once you've handled the deep link. 这些动态链接可以存储少量数据,一旦您处理了深层链接,便可以读取这些数据。 See this sample code for Android. 请参见此示例代码(适用于Android)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.