我对配置远程通知的权限感到困惑。使用过 Android,我了解权限的典型应用,但在本文档中,它将权限定义为程序集属性。
[assembly: Permission(Name = "@PACKAGE_NAME@.permission.C2D_MESSAGE")]
[assembly: UsesPermission(Name = "@PACKAGE_NAME@.permission.C2D_MESSAGE")]
[assembly: UsesPermission(Name = "com.google.android.c2dm.permission.RECEIVE")]
[assembly: UsesPermission(Name = "android.permission.GET_ACCOUNTS")]
[assembly: UsesPermission(Name = "android.permission.INTERNET")]
[assembly: UsesPermission(Name = "android.permission.WAKE_LOCK")]
这是提供权限的实际方式吗?我问是因为它在其他任何地方都使用清单,奇怪的是它不会在这里使用清单