Receive Push Notification in Windows with delphi application? - windows

I would like to create a Windows application in Delphi 10 enabled to receive push notifications.
I have seen that in Delphi 10 there is the BaaS provider to which to hook services like Kinvey, Parse, EMS. But I found serious problems, too many to summarize them here.
I have seen that Windows 10 can receive push notifications like in the Pushsafer client. In this case it is a question of developing a UWP App.
Delphi 10 (Tokyo) allows you to create a UWP App but it's a dark world for me.
I have looked for examples by sea and by mountains but it seems that it is not a very treated subject.
The question then is how to create a UWP App in Delphi enabled to receive Push notifications from Pushsafer or WNS?

Related

No sound for web push in MacOS

Is it even possible to play sounds for web push notifications?
For Chrome I was able to handle notificationDisplay event and manually play sound. However this event is not supported in Safari.
Nothing mentioned in official documentation at https://documentation.onesignal.com/docs/customize-notification-sounds
In Apple's documentation some Push Package was mentioned. However it's not clear where to put sounds.
It does not seem like web push notifications support sound at the moment. If any sounds do play, they would be due to the settings you might have on, for example, your Mac computer when you receive a notification, or your Android phone if it's set to buzz when you receive a notification.
Sound for web push notifications is in development though. For more information, you can follow these links:
Chrome Thread: https://bugs.chromium.org/p/chromium/issues/detail?id=442131
Firefox Thread: https://bugzilla.mozilla.org/show_bug.cgi?id=1105222

how to dial a number and a code in winphone

In a windows phone app, how can I dial a number and then a code after the phone answers similar to the Nokia Conference app? It seems to be using something different than the PhoneCallTask which does not allow you to do anything special. Thanks
I can assure you that this is NOT possible in WP7 or WP8 for average mortal developers.
Apps like Nokia Conference app get special (OEM) access to libraries that us muggles don't get.
For example the phone call intercept library and SMS intercept libraries.
Perhaps, just perhaps, in WP 8.1 you will be able to create a phone dialer app and be able to allow the user to assign your app as the default phone dialer. Then maybe you can do what you're asking. Currently in the WP7 and WP8 worlds though, this is black magic.
MSDN Question: Windows phone programmatically intercepting incoming phone calls through app
Reference MSDN - Certification Requirements - Phone Functionality Section 5.3
5.3.1 - Phone calls: The app must not delay or prevent the user from initiating a phone call, answering an incoming phone call, or ending a phone call.
You can apparently do this with a VIOP call

Windows Phone 7.5 / 8 push notifications and PhoneGap

we developed a mobile application with PhoneGap. So far it runs fine with WinPhone, iOS, Android and Firefox OS.
We now want to add Push notifications to the app. Basically we can choose which server backend to use. Since the project is already JS-heavy (ember.js) we started with Node.js and are using node-apn and node-gcm to send notifications to iOS and Android.
Is it even possible to have a PhoneGap application register with the MPNS? So far it seems to me that only native C# Applications can register with their server as a valid endpoint (the node.js plugin for MPNS requires this endpoint to send notifications).
It seems Pushwoosh's phonegap plugin works for windows phone, but only with their service. Or did I misread something there?
The reason we wanted to have a self controlled notification server is to push notifications to Firefox OS. None of the push-services seem to support this OS yet.
Any thoughts on this topic are welcome, thx in advance.
Cheers
Tom
The Cordova Push Notifications Plugin added support for Windows Phone 8 recently.
With this plugin, you can now receive and handle Push Notifications on Android, iOS and Windows Phone 8 devices conveniently.

Windows phone app that detects call, SMS and alarms and sends notification to PC

I am trying to develop an app for windows phone that will detect calls and send notification to PC through wifi. Similarly it will also send SMS that are received to PC and when an alarm goes off in phone, a notification will be sent to PC. How should I proceed about developing this app?
Thanks in advance.
There is no API exposed to allow you to spy on incoming calls or SMS in Windows Phone (like there was with Windows Mobile). The only option would be to build this as an OEM extension, but unless you work for HTC, Samsung or Nokia, this isn't going to be an option.
See it's not that you cannot but to some extent you can. Like you can use Obscured Event to detect call , lock screen etc. go through this msdn discussion for details
Detect lock and calls msdn
And as far as the alarm or the reminder is concerned you can go ahead and design a reminder system within your app. Limit is 50.
Obscured event Windows phone

Windows Phone 7 push notification when the app is not running

I am trying to implement push notifications in windows phone 7.5
I bind the channelUri in App.xaml when the application starts up.
I can then switch my app to background and receive toast notifications based on the Uri.
But this requires me to first go the app and then make it to background.
Can I receive the toast without the app running? That is when the channelUri is not bound.
Is this a default behaviour in Windows phone 7 or whether I am missing a point here?
If this is the behaviour, how can I send some form of notification/ information to the phone when the app is not running?
I did see this Windows Phone 7.5 - Push Notifications when app is tombstoned.
Update:
I know the Channel is active up to 30 days, is it the same when I use only emulator?
App should be associated with a channel so as to receive notification and even when app is not running, if the notification channel is active, then the application will receive the toast
I think you are missing the point. In order to receive toast notifications you don't have to have the app running in the background. Toasts (and Tile notifications) are meant for when the app is not running at all. So, start the app to get a push-uri and then send that to the service. In theory you won't need one again after 30 days. When it comes to the emulator it will be available as long as the emulator is running. Once you shutdown/close the emulator, the push-uri is gone and you would need to re-request one. (Generally speaking, nothing is saved on the emulator and so closing and opening the emulator is like getting a new device everytime.)
Hopefully this helps

Resources