所以在我们的应用程序上我们有Parse API,发送推送通知和管理后端的东西,我们发送和更新应用程序通知bt点击它打开APP的通知,我们希望它打开我们APP的商店页面,是有可能吗?
解决方法:
到目前为止我已经使用过此代码.您可以查看是否安装了Google Play商店应用,如果是这种情况,您可以使用“market://”协议.只需从您尝试从通知面板打开应用程序活动的位置编写代码.
final String my_package_name = "........." // <- HERE YOUR PACKAGE name!!String url = "";try { //Check whether Google Play store is installed or not: this.getPackageManager().getPackageInfo("com.androID.vending", 0); url = "market://details?ID=" + my_package_name;} catch ( final Exception e ) { url = "https://play.Google.com/store/apps/details?ID=" + my_package_name;}//Open the app page in Google Play store:final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_reset);startActivity(intent);
总结 以上是内存溢出为你收集整理的android – Parse API推送通知,在Play商店打开应用页面全部内容,希望文章能够帮你解决android – Parse API推送通知,在Play商店打开应用页面所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)