Branch link does not open activity with custom permission in android

烈酒焚心 提交于 2019-12-12 06:15:39

问题


I am using using branch links to open my app from messages. But to avoid anybody opening my activity maliciously, I have created a custom permission and applied that to my activity. Now when the branch link tries to open the activity, it crashes. How can I fix this issue. Branch link works fine without custom permission.

Thanks in advance.


回答1:


According to the comment on Android: Is it a good practice to define custom permission for an activity which has intent filters?, one should not define custom permission for the activity itself.



来源:https://stackoverflow.com/questions/44292579/branch-link-does-not-open-activity-with-custom-permission-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!