in toast message in windows phone 7, when clicking on that message the
application opens thats fine,
i just want to navigate to specific page when the toast message is clicked,
is there any way to do it?
both in 7 and mango update???
or
in http://samidipbasu.com/2011/06/14/push-notification-payloads/ in this link when we read for toast notification, we have an extra parameter called wp:Param in xml format to send. How they were sending this wp:Param data in windows 7.0(before mango update). Any idea ??
Support for navigating to a particular page is supported in Mango. Below is an example that does not require an HTTP channel, but must be executed by a background agent (not the application itself):
var toast = new ShellToast
{
Title = "Title",
Content = "Toast content",
NavigationUri = new Uri("/SomeOtherView.xaml", UriKind.Relative)
};
toast.Show();
NOTE: The NavigationUri functionality is also supported by toast sent via HTTP push notifications
#curiosity .. Toast & Tile payloads are pre-defined so that the OS can process these bits coming from MPNS after your app registers shellToast/shellTile. The extra parameters in the payloads are supposed to supported starting with Mango. As your app's first page (or whichever XAML page is in the URL) launches from the deep-toast, the developer should be able to listen in on the OnNavigatedTo() event to do something special with the params in the incoming URL (query string). Please see some later posts on my blog for examples & let me know if it helps.
Thanks!
all the info you need to know about push notifications is here
Related
I want to send notifications with FCM to an iOS App. It works fine when I send it to the token, but it doesn't work when I send it to a topic. I tried subscribing the App to the topics using this:
string[] topics = { "all", "test" };
CrossFirebasePushNotification.Current.Subscribe(topics);
(This is using the Plugin.FirebasePushNotification) or using this:
string[] tokens = { e.Token };
FirebaseMessaging.DefaultInstance.SubscribeToTopicAsync(tokens, "test");
FirebaseMessaging.DefaultInstance.SubscribeToTopicAsync(tokens, "all");
(This is using FirebaseAdmin) It's both in the App.xaml.cs, the first one beeing under InitializeComponent(); and the second one beeing in OnTokenRefresh. It works fine on android, but not on iOS. Keep in mind, that e.Token is the Token. I even tried to subscribe in the AppDelegate.cs, but it didn't work there either. I think it could be because it tries to subscribe before I even said "Yes" on the device so it can send me Notifications. I'm using an iPhone SE with iOS 15.3.
Thanks for your help!
I figured it out. In the AppDelegate.cs you can override the RegisteredForRemoteNotifications and you can just subscribe there. This means, it will subscribe if the user grants the permission to send remote notifications. After that it worked perfectly.
Target Platform : Samsung S6 - Android
Development base : Unity3D using C#
Intention :
Send a picture (MMS) shot within an app to any desired phone number within Canada. This app is supposed to be preloaded to a single Samsung S6.
Questions :
I was unable to find any Unity samples within you SDK, however I was wondering if anyone knows Unity samples for my intended use. However planned to use these scripts as first of reference.
Though the Android Phone number which is used to send MMS can be associated with Twilio the receiver would have no association with Twilio as the sender phone number is not something we would know until the photo is taken - hence is this a concern?
I see that from from the API call
// Send a new outgoing MMS by POSTing to the Messages resource */
client.SendMessage(
"YYY-YYY-YYYY", // From number, must be an SMS-enabled Twilio number
person.Key, // To number, if using Sandbox see note above
// message content
string.Format("Hey {0}, Monkey Party at 6PM. Bring Bananas!", person.Value),
// media url of the image
new string[] {"https://demo.twilio.com/owl.png" }
);
the fourth and final parameter is a URL link. Can link of the image be from any server or should it only be from twilio's server?
Thank you very much for time. Highly appreciate it.
Here you are. As far as I know this works like a charm.
I want to make a fake incoming call in windows phone 8. As we can compose a call can i do the same with incoming call.
For Making a call i am using following code:
PhoneCallTask phoneCallTask = new PhoneCallTask();
phoneCallTask.PhoneNumber = "8920383839";
phoneCallTask.DisplayName = "Gage";
phoneCallTask.Show();
You can't directly make a phone call (real & fake) in Windows Phone.However , if your app has ID_CAP_PHONEDIALER capability , you can show a popup for user to call the number you provided in your code.
In addition , there's no way to catch incoming calls.It's not permitted via Windows Phone API's.
You can create a fresh XAML page that strecthes to the screen and put some XAML controls inside it to get a fake incoming call screen , play a ringtone and achieve what you want.However , I doubt that application will go through Store :)
I am developing an app and would like to attach my location to a message and make this location "clickable" so that they can see it on a map/get a link which opens a map.
I am getting the correct location and store it into currentPosition but I am not able to send it so that the user can click on the link/map and see where I am. Is this even possible with the Windows Phone
var smsComposeTask = new SmsComposeTask();
var message = Message;
message += string.Format("\r\n My location is\r\n {0}",_currentPosition);
smsComposeTask.Body = message;
smsComposeTask.Show();
I think this is not possible because SMS body is plain text. It would depend on the receiver's sms app implementation, whether it recognizes location in sms body or not. For e.g. if you send a phone number or link in plain text in sms, it appears as a clickable number or hyperlink to the receiver only if his/her sms app displays it as such. Also i think wp8's native sms app uses mms to send location and there is no api to send a mms.
you can send it by using a link composer. So when you have found the position you should send it as a link. You can try and look at the app "I'm Here" in the store.
I write app on Windows Phone 8 with service of push notification (only toast), I have yet MSSQL Job which send pushes to my mobile app. Send data have this below format (typeId is int, which tell what app should do with data):
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<wp:Notification xmlns:wp=\"WPNotification\">
<wp:Toast>
<wp:Text1>title</wp:Text1>
<wp:Text2>subtitle</wp:Text2>
<wp:Data>typeId;data</wp:Data>
</wp:Toast>
</wp:Notification>
When push income when I have running app, I can service my app by method (this case works fine)
httpChannel.ShellToastNotificationReceived +=
new EventHandler<NotificationEventArgs>(httpChannel_ShellToastNotificationReceived);
httpChannel.BindToShellToast();
My problem is unable to service toast push notification, when app is not running. Push income with texts from XML, but when I click notification I go into main page of my app. How can I attach my code to decide what to do by typeId and data from XML
I find solution: XML should contains
<wp:Param></wp:Param>
section inside <wp:Toast> section. In rows I can put view adress with query string. After click notification bar I will redirect to this view. Parameters from query string will decide (in NavigateTo event) what program has to do :)