问题
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