I'm trying to send multiple notifications using my PHP script. But after sending about 50 or so out of the 10k users, I get a broken pipe warning. I'm not sure whether that message is sent.
From various other posts, I learnt that it could be because of a invalid token. However, my feedback service returns no invalid tokens. (ssl://feedback.push.apple.com:2196) Tried this both in production mode and sandbox mode.
What other reasons could cause this invalid pipe issue?
My exact problem is explained here by someone else as well.
http://pastie.org/698787.txt
Apple's servers will drop the connection as soon as there is something wrong in the stream of your push messages.
Be careful with mixing device tokens between sandbox and production modes. There's an article here that describes the issue.
Also, have you tried using the enhanced notification format described in Apple's documentation? The response might tell you what's wrong.
Related
I'm trying to create a small console application sending and receiving message from SFB.
I started by using the code from https://github.com/tamhinsf/ucwa-sfbo-console and followed the readme.md for creating the app in the Azure Management Portal (I assigned all the delegated permissions just to be sure).
All already included API work (so I'm sure I'm logging in correctly), but when I try to invoke makeMeAvailable to receive IM call (looking at https://ucwa.skype.com/documentation/KeyTasks-Communication-IncomingIMCall) I get the following response
{"code":"Forbidden","message":"The requested operation isn\u0027t allowed."}
My post data is the following
{"SupportedModalities":["Messaging"]}
Which is just as the example from the ucwa.skype.com site.
I'm also finding problematic to send a message, on the skype site the https://ucwa.skype.com/documentation/Resources-startMessaging shows a call to
Post https://fe1.contoso.com:443//v1/applications/970/communication/startMessaging
but on my application response embedded.communication._links.startMessaging is /messagingInvitations and not /startMessaging.
The documentation on https://ucwa.skype.com/documentation/KeyTasks-CreateApplication-3 also shows
"startMessaging":{"href":"/ucwa/oauth/v1/applications/105/communication/messagingInvitations"},
I'm quite confused over what I should do to correctly send and receive messages and the API documentation did not really help.
Thank you in advance.
makeMeAvailable isn't supported yet in UCWA for Online. Probably when it'll be introduced, a new app permission will be added in AAD permissions, which will need to be granted. So, that's expected, but the documentation is indeed outdated and just referring to behavior for UCWA for On-Prem.
See also / vote: Enable 'me' resource and controlling self user's presence in UCWA
You're correct, good finding. However, POSTing on the messagingInvitations resource (which is no where in documentation), is the correct way. So following the principle of using the URIs returned by operations, and not composing URIs by convention in your code is the way to go.
You can notify this by creating an issue here: https://github.com/OfficeDev/skype-docs/issues
We're using notification_key to group multiple devices. Since yesterday we're unable to send a message to a notification_key. The GCM endpoint returns with status 200 but the response body is empty. The GCM diagnostics inside Google Play shows that no message has been sent to the device and we additionally checked that the message does not arrive at the device.
However, sending a message to a single registration_id (one of which is managed by notification_key) works as expected.
We haven't touched the GCM related code on our side and it was working as expected the days before. I would like to know if this error is known and if other apps are affected as well. Also happy to hear from Google if they were any changes in the last few days.
The issue has been resolved by Google. This is the answer I got from the Google Group thread I've created for this issue:
Hi Andreas,
We had a recent issue in the send API, affecting a subset of the
notification_key requests. That issue should be fixed now.
Please try again. If the API is still not working for you please
report back using:
https://support.google.com/code/contact/gcm_dev_support
Thanks,
- Diego
Is there anyway to receive email in mvc, I'm imagining it probably involves setting up a smtp server and having the app poll every so often.
The scenario I am thinking of is tracking emails that are not being able to be sent for various reasons like invalid email address, receipient server down etc and we'd like to track those so we know whats going on and read the error response we are sent.
The other thing I'm not 100% sure of its how you would tie the messages together, I'm guessing you could do a reasonable job with checking the message title and recipients but a better way might be to specify a custom header however I'm not sure if these would still get sent by the mailer when they are replying back to us with the error, any ideas?
I think I've done this before but I use the third-party commercial component for ASP so I'm not sure that what is your main operating system server or whatsoever.
But you might check the source code and the component as well to help you through and build this application.
The source code is dope and wide, you might download, check and learn from that.
Link
Hope this helps and GBU
According to this blog post the new messaging system should be accessible via the API (fql/graph) for non developer account as of end of November. It still gives OAuthException with message "You must be a developer of the application".
I was unable to find any updates on this issue from Facebook or other sources. Anyone knows what is going on with this and when will it be accessible?
There was a bug opened on the subject, anyone who has interest in this might consider promoting it.
Going to answer my own question, according to the response on the bug seems like the official answer is:
"We said it would be published but it wasn't, so just wait until we say it will be published again".
Are you trying to read messages or send them? It's still not possible to send them but reading them should work for any app now
i want to know how do i enable my application to use push notification service.i read the guide but doesn't find it much detailed information about it.Could someone tell me an easy way that how it works,what are the requirements,how do i apply this in my app. one thing i would like to know that according to guide the connection between provider and APNs must be asynchronous,What does it mean? also i read that if we continuously connect and disconnect APNs will block the IP. so what is the minimum time difference to connect to APNs after disconnecting.Please guide me in according to the question.thanks
First off, there are quite a few tutorials out on the net for how to do this.
But here's the basics:
You need a server that is able to connect to the APNs whenever you have notifications for your app.
That server will then connect to the APNs using your Apple supplied SSL cert.
For each messages that you have to send:
a. Create a payload message that your app can do something with.
b. Include the deviceToken for the iPhone you want to send notifications to.
c. Write the raw data (see Apple's docs for specifics on the format) to the socket for each message.
Disconnect from the APNs.
What Apple means by "asynchronous", is that the APNs will not send a response to any of your data acknowledging it. So you need to make sure that whatever networking library you're using to connect can support raw data connections.
I don't think I have seen any published guidelines for minimum time between connections. I think Apple's note is more specifically directed to ensure that you're batching your messages and not flooding the APNs maliciously. I suspect that they'll contact you first if they feel you're overstepping the bounds.
Again, I would suggest a quick Google search on "iphone push notification tutorial" for specifics that can guide you further.
Hope this helps you on your way.