-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
提个建议 #3
Comments
或者可以把getAppLinking时机交给开发者控制,我们可以在flutter端主动获取applinking |
@zhangruiyu 当前Flutter中获取AppLinking的agcAppLinking.onResolvedData方法,在Android默认的standard启动模式下,仅需要在初始化设置一次就可以,后续热启动的时候也同样会调用设置的回调。 但是对于singleTop启动模式,插件的onResolvedData接口未对onNewIntent进行有效处理,导致singleTop模式下热启动的确会存在无法获取AppLinking的问题。 考虑到Flutter平台下,singleTop是默认的启动模式。因此,我们将对该模式下的热启动问题进行优化处理,在插件的下个版本发布。 |
请问下个版本什么时候发布呢 |
已经第四季度了 请问有任何进展? |
@zhangruiyu 不好意思噢 版本还在开发中 暂未发布 |
好家伙啊,。。有大概日期吗。太久了吧,这 |
@zhangruiyu 之前计划是年底 目前还不清楚哦 |
已经2022年了, 之前让我们用华为的东西, 我们也用了 现在一个bug要修复1年吗 发个版本更新下这么难吗 |
@zhangruiyu 实在是不好意思 已经和开发再次确认了 正在评估解决方案 最快下个月出版本 |
Hi @zhangruiyu From what you said, I understood that the problem was: While the application is close, when you click on the link, the application opens without any problems and the link parameters can be accessed. But while the application is open in the background, when the link is clicked, it redirects to the application, but the parameters cannot be accessed. I completed the following 4 tests for this problem that I understood and I did not encounter the situation you mentioned.
Also I checked our demo application, and it works. We released our new (null-safety) version 1.5.0+300 on January 24, 2022. Please test the following again, if the issue you mentioned still exists, give us more details.
|
I believe that the MainActivity startup mode of flutter should be Android :launchMode="singleTop ". This is the default solution of the Flutter app, but it is written Step 8: according to the documentation. This will cause multiple startup modes. Set to singleTop, this time from background to pull up the app, agcAppLinking. OnResolvedData! . Listen ((event) does not trigger. |
I think we should provide a method for developers to call and not listen on |
Hi @zhangruiyu If you don't want multiple startup and still want to fetch the parameters from the deep link, you should make these changes to your project.
android:launchMode="singleTask”
@Override
protected void onNewIntent(@NonNull Intent intent) {
super.onNewIntent(intent);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
finish();
} With these changes, if your application is open and in the background, when you click the link, the already opened instance will be active (not creating new app instance), and onResolvedData() listener will be triggered with parameters. |
finish(); MainActivity will be turned off. I've set launchMode="singleTask" |
@huseyinerenguler Is there any progress |
1 similar comment
@huseyinerenguler Is there any progress |
什么鬼?没解决就关了? |
@zhangruiyu |
按照上面说的,没法实现 |
|
目前使用applink发现应用在后台期间,通过链接打开app无法获取参数
应该再安卓onresume的时候再次去eventSink发下新数据吧,而且flutter的MainActivity应该是singleTop
The text was updated successfully, but these errors were encountered: