草庐IT

received

全部标签

C# 月亮 APNS : iOS Device Did Not Receive Notification

我是iOS开发的新手。最近,我尝试使用moon-APNS向我的设备发送推送通知。我在arashnorouzi.wordpress.com中跟踪了每一步。当我运行我的程序并读取日志时,通知已成功发送到APNS服务器,但我从未在我的设备上收到通知。可能有什么问题?我应该在我的设备或iOS应用程序上做一些设置吗?我只更改示例代码中的设备token、证书路径和密码。这是我的代码:varpayload1=newNotificationPayload("b8bf91fcc66016a7bf96154f3c65c6c479385df98094394c2514682152c29968","Messag

ios - ANCS 客户端 : What is the basic procedure to be able to receive notifications?

我正在尝试使用BlueZ堆栈(最新版本,5.39)在Linux上用C实现ANCS客户端。至此我可以使用Apple提供的服务请求UUID设置BLE广告数据。我的设备确实出现在iPhone(iOS9)设置中。我也可以连接到设备,但连接非常不稳定,这意味着,有时过一会儿,当我关闭iPhone上的蓝牙设置子菜单时,连接就会终止。它也没有绑定(bind),断开连接后,设备没有显示在iPhone上的“我的设备”下。我查看了hcidump,显然只是读取了一堆ATT数据,然后停止了:Pastebinlink,becauseitdidn'tformatitcorrectlyonhere连接终止后输出pa

iOS : Not receiving facebook App invites

我正在尝试使用以下代码向我的Facebook好友发送应用邀请一切正常,但好友无法收到来self的Facebook应用程序邀请的任何通知。FBSDKAppInviteContent*content=[[FBSDKAppInviteContentalloc]init];content.appLinkURL=[NSURLURLWithString:@"https://fb.me/myappid"];//optionallysetpreviewImageURLcontent.appInvitePreviewImageURL=[NSURLURLWithString:@"https://www.e

iphone - 为什么我得到此代码的 "wait_fences: failed to receive reply"?

为什么我收到此代码的“wait_fences:未能收到回复”?这是我使用通知与主线程通信的方式吗?#import"ViewController.h"@implementationViewController@synthesizealert;#pragmamark-BackgroundThreadTestMethods-(void)ConfigTasksForBackground:(id)sender{NSLog(@"ConfigTasksForBackground-Starting");[NSThreadsleepForTimeInterval:6];[[NSNotificationC

iPhone Objective-C - wait_fences : failed to receive reply: 10004003

我有这个奇怪的错误:wait_fences:无法收到回复:此代码中的10004003:-(void)alertView:(UIAlertView*)alertViewclickedButtonAtIndex:(NSInteger)buttonIndex{if(buttonIndex==0){[selfshowActivityViewer];[NSTimerscheduledTimerWithTimeInterval:6.0target:selfselector:@selector(hideActivityViewer)userInfo:nilrepeats:NO];[selfdownl

ios - NSInvalidArgumentException',原因 : 'Receiver (<ViewController:>) has no segue with identifier ' ''

>2014-09-2018:04:45.564storyboard_demo[6919:60b]嵌套推送animationcanresultincorruptednavigationbar2014-09-2018:04:45.921storyboard_demo[6919:60b]Finishingupanavigationtransitioninanunexpectedstate.NavigationBarsubviewtreemightgetcorrupted.2014-09-2018:04:46.442storyboard_demo[6919:60b]*Terminatingap

ios - 警告 : Application delegate received call to

我正在实现本地通知方法,但我收到了该警告Warning:Applicationdelegatereceivedcallto-application:handleActionWithIdentifier:forLocalNotification:withResponseInfo:completionHandler:butthecompletionhandlerwasnevercalled.这是我在didfinishlaunchmethod中的代码if([applicationrespondsToSelector:@selector(registerUserNotificationSett

c# - 单点触控 : Sending/Receiving NSData Though GameKit

我正在尝试在我的MonoTouch游戏中实现配对。我已经成功地实现了通过GameKit连接玩家的系统,但我仍然无法发送和接收数据。如何将此Objective-C代码转换为C#?我要发送的数据类型是一个Vector2类,带有X和Y浮点组件。NSError*error;PositionPacketmsg;msg.messageKind=PositionMessage;msg.x=currentPosition.x;msg.y=currentPosition.y;NSData*packet=[NSDatadataWithBytes:&msglength:sizeof(PositionPack

ios - XMPPFramework/iOS 问题 : send and receive subscription

我今天遇到了XMPPFramework的挑战...我已正确配置ejabberd:服务器已启动并正在运行并通过带内注册正确注册用户。但是当我尝试从一台设备发送订阅请求时,第二台设备无法接收到第一台设备的状态。这是我在第一台设备上用于订阅用户的代码,如文档所示:[[[selfappDelegate]xmppRoster]addUser:userJIDwithNickname:nicknamegroups:nilsubscribeToPresence:YES];如果一切顺利,第二个设备必须触发委托(delegate)方法:-(void)xmppRoster:(XMPPRoster*)send

iOS : No Notification Received from Facebook App Request

我必须在我的应用程序上集成应用程序请求,但它似乎不起作用。我搜索了一下,找不到明确的答案。一些报道的回复说可以在FacebookAppCenter中找到请求。但我没有收到任何请求,也没有收到通知。我正在使用FacebookSDKforiOSv3.8发送请求。没有错误,有请求,总是成功,但仍然没有通知。这是我用来发送请求的代码。-(void)sendAppInvite:(NSString*)message{NSMutableDictionary*params=[NSMutableDictionarydictionaryWithObjectsAndKeys:@"app_non_users"