AppleScript to Apple Watch or OS X app to Apple Watch - xcode

2 questions.
Is it possible to send AppleScript actions to an apple watch ?? Like send a string of text to be displayed on an Apple Watch ?
If question one isn't possible is it possible to send information directly from an OS X app to an Apple Watch ?

Not directly. You could send a message to a remote push notification service which the (phone or) watch could receive and display, provided it has registered itself with that service.
Apple Watch takes full advantage of the existing interactive notification support on iOS. If your iOS app supports notifications, Apple Watch displays those notifications at appropriate times. When one of your app’s local or remote notifications arrives on the user’s iPhone, iOS decides whether to display that notification on the iPhone or on the Apple Watch.
Not directly. You couldn't open a connection to the watch from a client on your Mac. You could initiate a connection from your watch or phone to a service, and the service could return a response.
For more information on notifications, see the WatchKit Programming Guide.

Related

How to register gimbal beacon on Apple Developer Console

I am working on Gimbal Beacons. I have registered my gimbal beacon on Google Beacon DashBoard. Now I can receive notification on any android device using my gimbal beacon. Now I want to do the same thing for iPhones. So that when an iPhone user opens bluetooth in beacon's range then a notification is received on iPhone. Please help me..!
Apple does not have an equivalent of Google's Nearby functionality that allows Android devices with Google Play Services to receive notifications when a beacon is in vicinity without a third party app installed.
On iOS devices, a third part app is generally required to send notifications for nearby beacons. Only one built-in app and one fairly common add-on app allow on iOS respond to third party beacons:
Passbook: if a user has installed a pass associated with a beacon, a notification will be displayed when it is nearby.
Google Chrome: responds to Eddystone-URL beacons if the Chrome Today widget gas been enabled. (Very few iOS users have Chrome and enable this.)
Other than the above, you need a third party app to make iOS respond to beacons.

How can I make the Google Eddystone url notification to make a sound when detected

I am using eddystone beacons to transmit my business url. How can I make the url notification received to alert thru sound on the users device? Any idea?
Understand that Eddystone-URL beacon advertisements don't automatically do anything on a user's phone unless they have an app installed to detect them.
Chrome for iOS and Android (installed on many newer Android devices, but very few iOS devices) will automatically detect Eddystone-URL advertisements and display a notification from Chrome if the user has opted-in. However, no sound is played. Bottom line: on a phone without a custom app, detecting an Eddystone-URL will not cause a sound to play.
If you build a custom app and get it installed on users' devices, you can certainly make it play a sound on Android devices when the beacon is detected. On iOS devices, you could also display a local notification on the device that will play a sound, but only if the user has the volume turned up on the device, does not have do not disturb on, and has opted-in to receiving notifications from the app.

Is it possible to create custom Android Wear notifications?

I have been doing lots of research trying to figure out if it is possible to create wear notifications with custom layouts over the past few months, but am struggling to find a solution.
I have tried to implement the following suggestions to no luck:
https://possiblemobile.com/2014/07/create-custom-ongoing-notification-android-wear/
http://android-wear-docs.readthedocs.org/en/latest/sync.html
Custom UI for Android Wear Notifications
Most of what I have read have instructed that in order to do this, I should create an android wear app with a data listener. The idea being the phone would send certain data to the watch (say a string) based on the type of notification it wants to send. I would disable the automatically generated wear notification. In its place, the Android Wear app listener would know what type of notification it is based on the string and display my custom pages for that notification instead.
My first problem I have run into is I have no idea how to debug code like this. Since in Android studio you can only launch the device app or the wear app, but not both at the same time.
The other question I have is, does the Android Wear app run in the background when the Device App is running? Do you have to open the Android Wear App first for the listener to be even working (if so then I guess this is not a solution to custom notifications)?
Is it actually possible to create custom layout android wear notifications?
If you want to use a custom layout for your notifications, you should create the notification on the watch, following Creating Custom Layouts. You can even make the custom notifications clickable, you can add actions that will open activities on the watch, etc.
For that, you can send a message from your phone to your watch and the listener implemented on your watch will receive it and then, create and display the notification using the correct layout corresponding to the message sent, for example.
In this case, the best way is to implement a WearableListenerService on your wearable. Its lifecycle is handled by the system which binds it only when necessary.
To debug, you install the wear app on the wear emulator or your watch, you install the mobile app on your phone and finally you connect the two following this tutorial if you're using the emulator or via bluetooth if you're using a watch (link in the tutorial).
The Android Wear app connects your phone to your watch, whether it is an emulator or not. So, in order for your message to be received, you must have connected wear and mobile via Android Wear. Then, once the connection is established, you don't necessarily need to keep it open. So yes, the Android Wear app runs in background.

Is it possible to implement dynamic notifications on Apple Watch without a launchable app?

I've designed a custom notification for an app I'm working on for Apple Watch. The notifications look good but because of the current technical limitations I don't want to build a launchable app or glance until I have mic and speaker access. Is it possible to display dynamic notifications without having an app icon on the home screen of the watch or is the watch app mandatory to have a dynamic notification at all?
No, you will need to add a dynamic Notification scene in your Watch app.
If you want to read more information about this I'd refer you to this page:
https://developer.apple.com/library/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/CustomzingthePushNotificationInterface.html#//apple_ref/doc/uid/TP40014969-CH6-SW1

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