Send email with WatchKit - cocoa

Looking for a way to have an WatchKit extension send an email.
Obviously I can get it to open a MFMailComposeViewController on the iPhone, but it defeats the purpose of using the watch if the user has to get the phone out to press "Send".
Is there any way of going this?

This is only possible currently if you implement your own email client. If you want the user to be able to use the email accounts on their Mail app, the best you could do is adopt handoff and make it easier for your user to just swipe up into a MFMailComposeViewController instance in your iPhone app from the lockscreen.

Related

Sending notification to custom teams application

I am working on a custom app that will load data in the personal tab from an external system. Everything works fine when I am on the app.
If the user is on the Calls or Chat tab and the external system is having something new for the user we want to notify the user in the chat or activity feed so that the user can revisit the custom app and review the data.
Please suggest how to achieve it.
Thanks,
Pratap

Laravel notification facebook driver get fb_messenger_user_id

I want to give users the ability to get notifications via the facebook messenger. However, I don't really know how to get the fb_messenger_user_id from a user.
I can get a personalized ID for the chat if a user starts chatting with my bot, but with this, I can't really verify which user that is. Is there something I've overseen? Something like a button similar to the "login with facebook" button?
Also, as far as I understand the docs, I am only allowed to send messages in a time frame of 24h after the last message from the user.
Can someone tell me how to use the facebook notifications properly?
As a side note: I am planning to implement botman into my existing app. I don't know how much this affects the notifications.

Can an app use both alerts and banners in Notification Center?

I am creating a Mac OS X application to use Notification Center. Some notifications should remain on the screen until the user interacts with them, and others should disappear shortly after displaying.
The NSUserNotificationAlertStyle key and changing System Preferences allow changing between banners and alerts. However, both approaches change all the notifications sent from my application.
Can I send some notifications as alerts and others as banners? If so, how?
NSUSerNotificationAlertStyle is the only way the developer can set the default notification style for the application, and it sets the style for all notifications from that app.
If you think it's really important for you to have 2 different kinds of notifications you can work around the problem by having a hidden helper application with a different NSUserNotificationAlertStyle than the main app.
Remember though you set the default notification style, but the user can change it whenever he wants in the notification center prefs, making your helper app useless.
No. The different notification types exist so that the user may select what he/she prefers, not so that the developer can.
If you feel your app should have this ability, you should file an enhancement request at http://bugreporter.apple.com and let Apple know.

Receiving sms alerts

I have been asked to build an app for a user to receive text updates to his iphone while he reports traffic updates on his motor bike. Is there a way to code an app that will receive these text messages? Or is there an even simpler way of doing this? He doesn't want to give out his phone number.

Is there a way to check for missed/unread notifications?

Is there an api in mango sdk that allows me to programatically poll the notifications/toast to at least get the count. I'd like to write background service check for missed messages.
It's not possible to get hold of the email/SMS messaging details like this in Windows Phone. The only way to interact with the email client is via the SDK Launchers and Choosers: see this link on MSDN.
About all you can do is call the EmailComposeTask or SmsComposeTask for writing a plain text email or SMS, or EmailAddressChooserTask for getting an email address from the address book.
Also bear in mind that launchers and choosers must be initiated by a user action and cannot be launched from any background agent code.

Resources