xamarin.ios - Azure Notification Hub and Apple APNS Push Notifications unregistering devices -


i working on application built in vs using xamarin unified ios project. 1 requirement of application utilisation of push notifications. issue our test device/application registers in first instance without issues, can see registration events in azure portals, , azure service bus. have confirmed initial registration using 'service bus explorer' application , server explorer feature in vs.

the issue arises when sending test push notification. according logs have access message pushed apples apns server , can't see failures being returned part of pns request. once completed device registration removed , notification never arrives on test device.

my understanding azure application hub handles pns rejections in order tidy device registrations. in , of not terrible idea, due lack of logging, it's hard determine root cause. have done ridiculous amount of googling one, , lot of people suggest issue apple certificates used. have deleted, recreated, resigned, verified, both apns certs , provisioning profiles until ran out of combinations. none of has resolved issue.

to make issue more confusing, if use service such 'http://pushtry.com' or 'http://pushwatch.com' , upload certificate , device token, allow me push notification device.

am missing glaringly obvious? or notification hub absurdly difficult setup , debug apns?

any can provide appreciated, publish code, know device registers correct device token, don't see necessary @ point, please feel free tell me otherwise. many thanks.

after many man hours , through luck rather kind of logical process, determined 'azure notification hubs' have in built validator apple device token that's passed apns. though there multiple examples , answers out there suggest submitting device token without spaces or symbols notification hub, in fact wrong approach. device token should submitted 'azure notification hub' in 'as is' state, without validating within xamarin.ios application. although seems such simple thing overlook, there lot of contradictory evidence out there on google, , azure's documentation says little format of submitted device tokens. anyway else someday.

-- edit --

device token format apple: < xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx >

format many online resources suggest passed notification hub as: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx without spaces or '<' , '>'

however should passed through notification hub received apple.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -