我刚刚听说 - 在iPhone中可以使用"推送通知"
我需要以下细节.
提前感谢您与Stackoverflow家人和我分享您的知识.
它是使用APN的MDM.组合配置文件中允许添加和删除应用程序.使用iOS5的iPhone.尽管iOS的MDM通过以下方法安装"iTunesStore"的"免费应用程序",但它没有成功.它在这种方法中犯了错误吗?请教我正确的方法.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CommandUUID</key>
<string>995761bc0ac0f311452f050a3e4be157ca2dda75</string>
<key>Command</key>
<dict>
<key>RequestType</key>
<string>InstallApplication</string>
<key>iTunesStoreID</key>
<number>338761996</number>
<key>ManagementFlags</key>
<integer>1</integer>
</dict>
</dict>
</plist>
Run Code Online (Sandbox Code Playgroud) 我试图让我的自定义通知声音工作,我尝试过一个caf文件,一个aiff文件和m4r文件,但似乎都没有播放.
我的通知正常,但自定义声音没有播放,而是播放默认设置.我的有效载荷是:
{"aps":{"alert":"alert testing - hello!","sound":"testsound.aif"}}
Run Code Online (Sandbox Code Playgroud)
从我在其他线程中读到的内容来看,如果默认播放,则找不到音频文件,但是它在xcode项目中,我已经从我的设备中删除了应用程序并再次运行它.
我有可能失踪吗?
我尝试在方法中注册远程通知
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
Run Code Online (Sandbox Code Playgroud)
因此,当应用程序被推出时,它每次都要求远程注册.据我说它不应该是这样的.如果应用程序已经注册,它应该是.
但我没有找到任何方法来检查思考.
我正在思考还是还有其他方法?
对于iphone推送通知SSL证书,您需要为他们提供CSR文件...
我已经保存了一段时间以来的CSR文件,每当我想生成SSL证书时,我总是给上传相同的CSR文件...
现在我一直在想,因为在生成CSR文件时,我实际上是在生成私钥,也可能是公钥...
所以我想知道当我使用相同的CSR文件时我遇到了什么缺点..虽然当我下载SSL证书时,它们出现在钥匙串中,好像有多个私钥(尽管它们具有相同的名称)和每个都附加到不同的SSL证书.是否建议每次都生成一个新的CSR文件?为什么?如果没有必要,那怎么样?谢谢
我集成了Push Notification库来发送推送通知.当我在我的本地机器上测试它工作正常,但是当我将库示例代码上传到实时服务器时它会引发我的错误,我在下面粘贴了响应...我发现在整个响应中的真正错误是 - >'错误:无法发送消息ID 1:缺少有效负载(4)'.我需要帮助才能解决此问题.
Thu, 18 Apr 2013 12:58:29 +0200 ApnsPHP[17833]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Thu, 18 Apr 2013 12:58:30 +0200 ApnsPHP[17833]: INFO: Connected to ssl://gateway.sandbox.push.apple.com:2195.
Thu, 18 Apr 2013 12:58:30 +0200 ApnsPHP[17833]: INFO: Sending messages queue, run #1: 1 message(s) left in queue.
Thu, 18 Apr 2013 12:58:30 +0200 ApnsPHP[17833]: STATUS: Sending message ID 1 [custom identifier: Message-Badge-33] (1/3): 45 bytes.
Thu, 18 Apr 2013 12:58:30 +0200 ApnsPHP[17833]: ERROR: Unable to send message ID 1: Missing payload (4).
Thu, …Run Code Online (Sandbox Code Playgroud) 我刚刚开始学习如何使用iOS和Parse实现推送通知.目前,我可以从Parse仪表板向应用程序发送推送通知,收到通知,正如我在Xcode控制台中看到的那样,但现在我的问题是我无法从AppDelegate打开视图控制器.
这是我的代码:
- (void)application:(UIApplication *)application
didReceiveRemoteNotification:(NSDictionary *)userInfo
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))handler {
// Create empty photo object
NSString *photoId = [userInfo objectForKey:@"p"];
NSLog(@"P=%@",photoId);
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle: nil];
Aceptado *targetViewController = (Aceptado*)[mainStoryboard instantiateViewControllerWithIdentifier:@"servicio_aceptado"];
UINavigationController *controlador = [[UINavigationController alloc]init];
[controlador pushViewController:targetViewController animated:YES];
}
Run Code Online (Sandbox Code Playgroud)
正如我所说,控制台显示日志NSLog(@"P=%@",photoId),收到通知,但未显示视图控制器,显示任何警告或错误.
欢迎任何帮助.
我使用parse向iOS和Android用户发送推送.出于某种原因,在Parse界面更新后,默认设置为"递增应用徽章?" 已启用,所有iOS用户现在都会看到带有"1"的红色徽章.
在我目前的应用版本中.我的应用程序中没有删除徽章的任何代码.如何为我的用户重置此徽章?也许我可以发送一些推动设置它等于0?
push-notification apple-push-notifications ios parse-platform swift
我使用OneSignal进行推送通知服务.
(开发)我为我的应用设置了推送通知服务的配置文件
当我从Xcode运行时,一切都在每台设备上正常运行.
但是,当我使用Debug Scheme创建存档(.ipa)并通过iTunes安装时,设备似乎连接到OneSignal推送通知服务.但是,无法从连接到OneSignal的后端服务接收通知.
所以,我认为APNS存在问题
对此有何帮助?我做错了什么.
如果有,请指导我?如何使用存档(.ipa)测试iOS开发配置文件的推送通知?
我的应用程序实现了新的iOS 10富推送NotificationService扩展.
一切都按预期在iOS 10上运行,但我也想支持iOS 10之前的设备 - 当然不是丰富的推送,而只是常规推送.将Xcode中的部署目标降低到例如8.0或9.0并尝试在较旧的模拟器或设备上运行时,会出现以下错误:
Simulator: The operation couldn’t be completed. (LaunchServicesError error 0.)
Device: This app contains an app extension that specifies an extension point identifier that is not supported on this version of iOS for the value of the NSExtensionPointIdentifier key in its Info.plist.
Run Code Online (Sandbox Code Playgroud)
Apple没有正式发现任何东西,说明你的应用程序只能在iOS 10+上运行一旦添加服务扩展 - 有人可以确认吗?
iphone apple-push-notifications ios richpush serviceextension