`
shappy1978
  • 浏览: 703494 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

About Push Notification

 
阅读更多

http://stackoverflow.com/questions/2438400/reset-push-notification-settings-for-app

I am developing an app with push notifications. To check all possible ways of user interaction, I'd like to test my app when a user declines to have push notifications enabled for my app during the first start.

The dialog (initiated by registerForRemoteNotificationTypes), however, appears only once per app. How do I reset the iPhone OS's memory of my app. Deleting the app and reinstalling doesn't help.

//************************************************************************************

The first time a push-enabled app registers for push notifications, iOS asks the user if they wish to receive notifications for that app. Once the user has responded to this alert it is not presented again unless the device is restored or the app has been uninstalled for at least a day.

If you want to simulate a first-time run of your app, you can leave the app uninstalled for a day. You can achieve the latter without actually waiting a day by setting the system clock forward a day or more, turning the device off completely, then turning the device back on.

//************************************************************************************

Apple added a new requirement to the AppStore submissions guidelines, which relies on the application to show the prompt. This may suggest that the automatic prompt has been removed in iOS 5.1. However there is no API to query the notification center settings, so not sure what would be the purpose of the prompt anyway. See my response to a similar issue: stackoverflow.com/questions/10191006/… – Amiramix

//************************************************************************************

The plist: /private/var/mobile/Library/RemoteNotification/Clients.plist

... contains the registered clients for push notifications. Removing your app's entry will cause the prompt to re-appear

//************************************************************************************

 

分享到:
评论

相关推荐

    Laravel开发-laravel-push-notification Push Notification 服务端支持

    在本文中,我们将深入探讨如何使用 Laravel 框架中的 "laravel-push-notification" 扩展包来实现 Push Notification 的服务端支持。Push Notification 是移动应用中常见的功能,用于向用户实时发送消息、提醒或者...

    Android Push Notification实现信息推送完整包

    本文将详细介绍如何实现Android Push Notification,包括服务器端(Server)和客户端(Client)的设置以及操作配置流程。 1. 服务器端(Server)实现 服务器端负责发送推送通知到Google的云消息服务(GCM,现在...

    Apple Push Notification Service简介

    ### Apple Push Notification Service (APNS) 简介 #### 一、APNS 概述 Apple Push Notification Service(简称 APNS)是苹果公司提供的一种推送通知服务,它允许开发者向用户设备上的应用发送实时更新的信息。...

    android push notification 下载即可运行

    在Android平台上,推送通知(Push Notification)是一种高效且节省资源的方式,用于向用户发送应用程序相关的实时信息,即使应用并未在前台运行。这个“android push notification 下载即可运行”项目表明,它提供了...

    使用android push notification service 实现即时通知

    在Android平台上,实现即时通知通常会借助Google的云消息推送服务(Google Cloud Messaging,简称GCM),但在iOS系统中,对应的则是Apple Push Notification service(APNs)。然而,这里提到的"android apns"可能是...

    iOS push notification 文档

    iOS Push Notification文档 iOS Push Notification是Apple提供的一种服务,允许开发者向用户推送信息,从而提高用户体验和应用程序的粘性。本文档将详细介绍如何在iOS应用程序中使用Push Notification,包括工程的...

    Laravel开发-laravel-push-notification

    **Laravel 开发:Laravel Push Notification** 在现代Web应用中,实时通信是不可或缺的一部分,尤其是在用户需要即时接收消息或更新的应用中。Laravel Push Notification是Laravel框架的一个扩展包,它允许开发者...

    Android push notification方案比较

    【Android Push Notification 方案比较】 在开发Android应用时,向用户实时推送通知是必不可少的功能,Android提供了多种推送通知方案,包括C2DM(Cloud to Device Messaging)、MQTT(Message Queuing Telemetry ...

    IOS 打包出现Missing Push Notification Entitlement 问题解决方案

    在iOS应用开发过程中,开发者可能遇到一种常见的错误提示——"Missing Push Notification Entitlement",这意味着在你的应用中包含了用于Apple Push Notification service (APNs) 的API,但是缺少了必要的权限设置,...

    Android代码-react-native-push-notification

    npm install --save react-native-push-notification react-native link NOTE: For Android, you will still have to manually update the AndroidManifest.xml (as below) in order to use Scheduled Notifications...

    Android Push Notification

    An open source project to provide push notification support for Android -- a xmpp based notification server and a client tool kit.

    Push Notification 使用 包含客户端和服务端

    Push Notification,为了是手机应用 keep onlive ,经常会有一个一直运转的后台服务程序,这样的应用使手机特别耗电,现在用了 Push Notification 可以来处理这个问题。

    Android push notification 服务端源代码

    Android Push Notification服务是Android应用程序与用户交互的一种重要方式,它允许应用在后台向用户发送消息,即使应用没有在运行。AndroidPN(Android Push Notification)是一个开源项目,专注于提供服务端的解决...

    Android Push Notification客户端源码包

    在Android开发中,Push Notification是一种重要的技术,它允许应用程序在后台接收来自服务器的消息,并在用户的通知栏中显示这些消息,即使应用并未运行。这个"Android Push Notification客户端源码包"显然是一个...

    android push notification service Demo

    首先,我们需要明白APNS(Apache Push Notification Service)并不是Android系统的官方服务,而是通常指苹果的Push Notification Service。然而,在这里,“apns”标签可能是开发者为了表示类似功能的一个简称,或者...

    Push Notification Certificate.csr.txt

    Push Notification Certificate.csr.txt

    android push notification XPMM源码

    Android Push Notification XPMM源码详解 在Android应用开发中,推送通知是一项至关重要的功能,它能让用户即使在不打开应用的情况下也能接收到重要的信息。XPMM(可能代表eXtended Push Message Management)是一...

    Apndroid Push Notification实现安卓推送

    本文将详细解析如何实现Android Push Notification,主要基于提供的标签"源码"和"工具"来探讨。 首先,理解Android Push Notification的工作原理至关重要。Android系统通过Google的云消息服务(GCM,已更新为FCM,...

Global site tag (gtag.js) - Google Analytics