C2DM question on fitness of purpose - android-c2dm

I want to be able to push messages out to certain customers who have a particular postcode. Is this possible with C2DM or is it a case of only pushing to everyone who has the application?.

It is not possible to determine the postcode of a device via C2DM. But you might use the
localization feature of Android and use this information to find the postcode.
Edit: Or just ask the user to enter his postcode ;)
Thus, your application needs to register at your server it could also submit the location information (in another step), and you could save it in your database along the device id.
Then you could send a message to all users that are in a specific area.

Related

Getting started creating a web form in Microsoft Teams

I dont know where to begin. Do I need to create an app? Do I need to use bots? I have tried finding docs online but don't know where to start. Any help with be appreciated.
I am trying to create a small form in a teams channel that my users will fill out.
User enters #projects
Web server responds with
User clicks submit and data gets posted to my web server.
You're correct that there are a few different kinds of applications in Teams, so finding the one that suits your needs can be a little confusing at first. For what you're trying to do, I would recommend a Bot, and when it received a message (which it will do when it receives your #mention), it can respond with an Adaptive Cards. Adaptive Cards, if you've not used them, are like small embedded forms inside the chat. The user can complete the card and click a button, and it will send the payload back to your bot to do whatever it needs.
Bots, incidentally, are basically just web services, so your bot can do whatever it needs once it received the payload, such as calling another API in turn.
You haven't mentioned what language you might want to work in, but here are some good starting point nevertheless:
https://dev.botframework.com/
https://github.com/microsoft/BotBuilder-Samples/tree/main/samples
https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/csharp_dotnetcore/57.teams-conversation-bot (I've linked the C# version - you should know that Teams bots use the same Microsoft framework as -all- bots build for the Microsoft world, such as web chat bot or a Skype bot. As a result, you have to ensure that anything you look at is applicable to Teams as some content/samples are not)
https://adaptivecards.io/ (as with Bots, Adaptive Cards have a life outside of Teams, so some articles/content/etc. might not be applicable to your scenario)

How to access Contacts in Windows 8 People app from another app

Does anyone know how to access Contacts in Windows 8 Store apps?
I know that because of the sandboxed nature, Windows Store apps cannot access AddressBook from files such as Outlook Express contacts or Outlook, but since there is already an app called People that comes pre-installed, I figure why not let users make use of whatever Contacts the user has already allowed the app to see, rather than creating separate list of Contacts for my app. It seems silly to recreate the wheel by asking the user to re-import all the contacts again.
I have seen Contact Picker example but I still have no clues how to get list of Contacts/People as in that People app.
I have not developed for mobile phone, however if the device is a mobile phone, surely the app is expected to use local contacts rather than keeping separate list of contacts. So I am thinking there's got to be a way to do the same thing on a PC or any device really, rather than each app managing its own contacts. I have not seen any guidance on how to do this. What are your thoughts?
I asked a similar question a few days ago and, after a lot of research, it looks like it's just not possible to get that information from the people app outside of the contract. The reason that it works within calendar/mail/messenger is because they're all technically contained within the same app and are able to use each other's data and violate normal rules.
A lot of people have pointed me to look at the live SDK, but it still seems like it's not at all possible to get people information in your app, since the SDK doesn't support it anymore.
Look at the ContactPicker class :
http://msdn.microsoft.com/en-us/library/windows/apps/br224913.aspx
Another way is to share your resource or whatever you want to send and user will choose an app that will send or on any another way use your shared resource (url, image, whatever)
IMO the latter is preferred way since then user will have a choice of applications that can send mail or post that resource on facebook / twitter.
Check this sample on ContactPicker

IOS implementation advice

I want to develop an application that stores user's data on an SQL server.
The data contains location and some user note.
I don't want to store anything on the user's iphone.
So what i want to do is an application that gets the user location and check with the server if the location changed for about 100 meters.
I believe this has nothing to do with push notifications.
Am i right? And what do you suggest on how to implement it....
Just Give me an overview of your solution please.
Thanks
This has nothing to do with push notification.
Although, I assume you want to do the same thing than the foursquare application : when you want to checkin, the app sends to the server your actual position, and the server sends back the list of places around, then if you move from a certain distance from your originally point, the app asks the server again for a new list.
So basically, I would just check every 30seconds the position of the user, and if the difference between the last and the current position is above a threshold, just send a request to the server.

Is this application possible with the twitter api?

I have to make an application where a "sender" can send a message to a group of people and to a location. So when a member of the group reach this place (using location position with the cell phone), he receives all the messages for this location. I have thought to make the application using the twitter API, but I'm not really sure if that functionality is possible.
I thought using twitter would be nice to manage groups and login... the application is written in c++ in QT, so, any ideas for the service to be used to manage messages?
Thank you!
This sounds more like something you'd want to write independently; there's nothing using Twitter would really gain you here.
ok... Here are some points from me.
First of all the person should have enabled geo tagging for you to get the position of the location.
The person should send a Tweet only then you will know the location of the person.
I wouldn't say its not possible but may not work in all cases. I would look for developing a service where the person can join, activate geo tagging and then you can monitor each person's tweet and then send them this location based message.

Touch iPhone/iPod/iPad Transactions

I heard that there are applications that allow people to do transactions by just touching there iPhones to each other. How is that archive via code in Objective C?
I beleive each phone has to detect the "bump" (using UIAccelermeter) and send an immediate notification of the event ot a server (perhaps with a timestamp and some geolocation info too?). Then the server matches up events that occur at the same moment, to determine the two devices involved. Then the server facilitates the transaction by sending each phone's info to the other.
take a look at the Bump API http://bu.mp/api.html as used in the Bump iPhone application. I haven't used it myself so I cannot say how easy it is to integrate but they claim it only requires you to add ten lines of code.
The way I would do it would be to have each device send the other their UID over bluetooth and then have them both send a message containing the other devices UID and their own UID to the server with a timestamp, then have the server handle the transaction.