Is there a way to Detect Unread Text Messages on WP7.1 - windows-phone-7

I'm looking to build a method which needs to see if there are any text messages on the device which have not currently been read
Is there a way to expose the phones messages to detect whether there are any unread ones and return a bool/int value?
I know in WinMo, you could use SystemState.MessagingSmsUnread to return an int, but I can't seem to find a wp7 equiv.
Thanks in advance

No.
In Windows Phone there is no way to access the details of any received messages.
This was a deliberate design decision to prevent applications accessing a users personal data without their knowledge.

Related

Can I create a configuration page for a Teams bot app?

I'm building my first Teams app which will have two primary functions:
Proactively send a message to the channel (the bot is installed into) when a specific event occurs on my backend.
Members of the channel reacts to the message via actions.
I finally have a pretty good idea of how to set this up (I think) - but one part I'm missing is that in order to identify the specific app installation as belonging to one of my customers, I need to be able to allow the installing user to supply extra information like e.g. an API-key so that I can associate the specific channel with my specific customer.
Is there any way of doing this with a bot app? I've found examples for creating a configuration page, but they all seem to be associated with tab apps?
I could of cource have the bot ask the user for the information - but maybe there's a "cleaner" way?
Any examples or tutorials would be greatly appreciated as I find it rather hard to get stuff working using Microsoft's own examples etc. :)
Thanks a lot!
When you receive any message from the user, either by typing to your bot, or even installing it into a channel, group chat, or personal context (where you get the conversationUpdate event), you are able to get specific details off of the activity object. If the user sends a message, for instance, then the text property on the activity object will have a value. Incidentally, this is the same activity you will use to get the conversation details you need for the Proactive message.
With regards your question, the activity class also includes a tenantId property, hanging off the conversation property. This is the unique Microsoft 365 Id for the tenant, which would be what I'd suggest to uniquely identify them for your API, or licensing, or similar.

Receiving messages back to my platform

Use Case SMS leaves my platform and goes out to a receiver (SMS). I would like to attach some sort of custom identifier so when the user responds back to the SMS..and my platform received the message..I know how to internally route the response back in my platform.
Any ideas?
Maybe set up a system where when the code is sent out
For instance:
Code - 11832
The user then has to enter this code on your website. A program will then match to see if it's the identical code. So you are then able to log the information
No expert on this though and Where is your code ?
Twilio evangelist here.
There isn't really a great way to attach an identifier to the message itself. You could force the user to prepend/append a code in their reply, but depending on your specific scenario that might not be a great user experience.
Another option is to save the to/from phone number as a unique pair when you send the message. Then as your application receives replies you can check the incoming to/from phone number against what you saved.
Hope that helps.

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.

what events are used in symbian c++ to catch the notifications sent by the service provider

I know the title isn't that clear so let me try to explain using an example. Say, when we send a message through my phone, we immediately recieve the balance deduction notification from our service provider. My question is that which event is used to catch this notification in symbian C++.
Could we possibly change the way notifications are displayed?? Say for eg., nokia symbian 60 phones show these notifications as a pop-up where some phones use the entire screen to show the deducted amount. Can I catch this event and show it in the form of a new message ?? I mean to say that the balance deduction notification is shown as a message in my phone's inbox but not as a mere pop-up and then lost.
Thanks in advance.
Regards,
Avanish
P.S. Please try to advice as soon as possible. I would highly appreciate your responses as they will help me in deciding the strategy for my application. Thanks a lot.
If I understand your question correctly, you are asking about the messages that appear on the screen on a phone when used with Pay As You Go SIM showing the balance. This may depend on the service provider but usually, the message notifications are Class 0 SMS messages (also known as Flash SMS).
Class 0 SMS are defined as:
Class 0 SMS: This message is displayed on the mobile phone immediately and a message delivery report is sent back to the SC. The message does not have to be saved in the mobile phone or on the SIM card (unless selected to do so by the mobile user). This type is also referred to as Flash SMS.
Therefore, you can catch these notifications by monitoring for these types of incoming SMS (assuming the SDK allows this).

Problem while Making a Call and SMS in same Process on Windows Phone 7

I am developing a application for Windows Phone 7 in which on a button click I need to first send some text messages and then make a call. But as both process are user dependent so I am not getting how should I make it such a way that unless user first finishes the sending messages my app should not initiate call. Because unless I do so it will give thread abort exception.
Thanks;
nil
With the current SDK there is no way to know if the SMS was actually sent. It could also have been changed by the user before being sent!
Lots of people have asked for this functionality (or similar but for other tasks). Let's hope it comes in a future update.
I believe you can't do it in parallel, because WP7 isn't really multitask.
Do you really need to do it in parallel?
Search for the events deactivated and activated. They are in App.cs.
After you make a call, and back to the program, the activated event will detect it, so you can add code there to send SMS.
Done in reverse way. First make a call and then when user comes back after tombstoning send an Email...but flag manipulation need to be saved in isolated storage.

Resources