How to register callbacks for Googles Contacts API? - callback

Instead of querying my server every x minutes for changes in my Google Contacts I rather like a certain URL to be called when a contact has been added, updated or removed either through GMail or my iPhone.
Is there a way I can register callbacks to do so?
For instance, at this point I added my GMail account to my iPhone and iMac. When I open the Contacts.APP I can see all my Gmail contacts. When I add a contact it will automatically be updated on my iPhone, on my iMac and in the GMail webinterface. However, I like to know when such an event occurs to run additional tasks through the Google Contacts API.

Related

How to register test number when using WhatsApp Business API

I'm trying to send test message on WhatsApp Business API
it took a day until I was shown a test number on "from" option
now I need to register the test phone but don't know how.
the register link take me to the configuration page,
but there is no option to register
Here is my WhatsApp account:
You can't add any testing phone numbers, Facebook App by default provides one, that you can see in From dropdown,
You can add only productions phone numbers, follow the below ways,
You can find the option in your Facebook App > Getting Started under WhatsApp menu,
Second, you can add from Your Business Setting,
Read more about how to register a phone number in WhatsApp Business,
https://developers.facebook.com/docs/whatsapp/phone-numbers
I also experienced this, it seems to be a bug in facebook itself or some lock in relation verified business, I did a test by creating a new business account and also a new application for this account , I activated whatsapp business and everything worked perfectly. But when I try to do the same procedure with an already verified account, the test number requests some kind of registration and also sends a notification that the test number was not approved. Unfortunately I haven't found any solution for this yet.
notification refused number

Sending email and sms one after the other in WP8.1 (WinRT)

I'm working on a SOS app that is supossed to send emails and/or sms when the user needs it to. This will happen using the contacts that the user added to the app. At the moment the user can add 4 of these contacts, regardles of the type (email/sms).
I'm already able to send sms OR emails using
await ChatMessageManager.ShowComposeSmsMessageAsync(chatMessage);
or
await EmailManager.ShowComposeNewEmailAsync(emailMessage);
The problem is doing both things, one after the other.
If I call both of this functions at the "same time", only one of them will show the respective page. Since OnNavigatedFrom and OnNavigatedTo events do not fire in these conditions, is there any other kind of event that fires when it comes back from the pages or some other way to wait until one of the pages is dismissed?
Thanks
Ok I've found the solution
Window.Current.VisibilityChanged
fires in this case. I'm able to figure out when the application is getting visible again and assume that the SMS was treated, launching the email at this stage.
I just start listening to the event before composing the SMS and release it when it comes back. It seem so simple now..
(Still don't know why OnNavigatedTo doesn't work)
Launch 2 SMS Compose tasks in Windows Phone 8.1 RT App pointed me in the right direction.

Is there a sample of displaying a BBM contact list using Cascades on BB10?

I have been struggling for a little while to get the contact list from a BBM connected app so that I can choose a contact to work with.
I am using the bb::platform::bbm::ContactService class, but whenever I call contacts() it comes back as null, even when the registration process is completed.
That method returns a list of contacts that have your application installed. There isn't a way for an application to read all of the user's BBM Contacts.
If you are looking to initiate a chat, you can use the invocation framework to do so and not specify a PIN. This will bring up the BBM contact picker - listing all BBM Contacts - for the user to select from.
Did you check to make sure your app has the right permissions? It should have access_pimdomain_contacts.

Add a new sms into iPhone inbox programmatically

I searched all already asked questions here on Stack Overflow, and all of them deal with "sending" an SMS programmatically to another phone and that is NOT what I want.
I want to just add an SMS to the inbox, without using the cellular network or any other service and write a from "my_company_name" etc. Basically I want to avoid making the user or my company pay for the SMS. I know about push notifications and I will use them as well, but I need SMSs.
I thought about that maybe, if the user sends the SMS to himself it would be free of charge, but that "seems" to be not true at all.
The Messages app (and its notification UIs) only displays messages that come in over SMS or iMessage. What you're looking for isn't possible with public API.
As there is no public API available to do this (I guess you already now that), you'll have to go for the private APIs.
You might want to take a look at the source code of BigBoss's WifiSMS. This app allows one to control the iPhone's SMS system thru your computer. I haven't tested it myself yet, but BigBoss is a pretty credible application creator when it comes to jailbroken devices.

Sending push notification from device to all contacts

I have an app where I would like to select a user in my contacts. If that person has my app installed, then I would like to send some data that is relevant for this app using a notification. The other user gets the notification, and acts on it within this app. Is that possible? I am thinking that if I can identify that users device, I can store this message in a server. When the user connects to the app, it will retrieve and get this users message from the server. But question is can I identify other devices like this, from my contact list. Can I send this notification using phone number instead of device id?
Please help.
Thank you,
Anks
No, you cannot. You have to have the Apple Push Token for a device and the user has to have notifications turned on to be able to receive notifications from Apple Push.
You would need to maintain a server side database linking the APNS Token to a specific user account. There are a lot of dots to connect with this kind of implmentation. Your better bet would be maintaining a "list of contacts" within your App to link contacts to.