show phone activities below my app's page in wp8 - windows-phone-8

I want that once my app runs; obviously there would be a transparent page; I want that all phone activities run below my app's page! e-g user runs app. now user can use phone menus but it should be below my app's page.

The short answer: what you want to do is not possible in the Windows Phone environment.
A possible alternative: I believe the closest you could come to achieve what you want to do is by using Toast Notifications. Toast Notifications appear at the top of the screen, notifying the user of an event. It appears briefly then goes away. If the user clicks on the toast notification he is taken to a page that you specified in the notification.
The code for a toast notification would look something like this:
var toast = new ShellToast();
toast.Title= "A Toast Notification";
toast.Content = "The content for the toast notification";
toast.NavigationUri= new Uri("/PageToGoToOnToastTap.xaml", UriKind.Relative);
toast.Show();
The code above would be triggered by a background process.

Related

Windows Phone notification content sometimes not displayed

I have a simple windows phone 8 project that consists in receiving notifications from a server, and displays its content on a MainPage.xaml.
The notification has a title, a subject and a content. I have faced a strange issue on Nokia devices that have a notification center, where you can see all the received notifications which are not opened yet. I have noticed that those notification are separated in 2 clickable lines:
The first line (icon and application name) opens the
application.
The second line (notification title and subject) opens the
application with the notification content.
During my tests, I sometimes missclicked on the first line, which opens my application without the notification's content (and so did not understood what the hell was happening). As I am not a Windows Phone user, can you confirm this is a common behavior on Nokia devices ? Or is there a way to always open the application with the notification content, even if you clicked on the first line ?

start application on alarm fires in windows phone 8

I am new to Windows Phone 8 application development and I am creating an application for setting alarm. I have created it and scheduled some alarms . It shows default alarm window with "Dismiss" and "Snooze" buttons. Can I have the provision to override the dismiss and snooze button events from my application. Or can I start my application which set the alarm when the alarm fires? Is anybody knows the answer please help me.
I guess there is no such way to override these buttons for an alarm. But if you are going to use a reminder then you will be able specify a relative navigation URI, and when an user taps on the reminder pop up you could redirect the user to your app.
For more refer here
http://www.geekchamp.com/articles/getting-started-with-windows-phone-alarms
Hope it helps!
You can not Override that butttons but you can have events that are fired when alarm popup opens or dismissed.
Inside your App.Xaml.cs, you can subscribe to the Obscured and Unobscured events of your RootFrame.
RootFrame.Obscured += new EventHandler<ObscuredEventArgs>(RootFrame_Obscured);
RootFrame.Unobscured += new EventHandler(RootFrame_Unobscured);
When the alarm pops up, RootFrame_Unobscured will be fired; after you dismiss it, RootFrame_Obscured will be fired.

Google Cloud Messaging for Chrome - a received message is not shown as a popup

I downloaded Google push-sample-app code, removed the key from the manifest, uploaded the app to the Chrome Web Store, then installed it in Chrome from the Web Store.
Now chrome://extensions/ lists the app as "Enabled", with "Inspect views: background page (Inactive)".
Chrome Task Manager doesn't list the app as currently running.
If at chrome://extensions/ tab, I click "background page (Inactive)" link for "Push Messaging Sample" app, then an inspect view shows up in a separate Chrome window, and a new entry appears in the Chrome Task Manager: "Background Page: Push Messaging Sample". As long as an inspect view Chrome window is open, an event page "background.js" doesn't get offloaded. And When a message is sent to the push messaging service, a popup window with the message text appears.
If I close the inspect view Chrome window, and send a message to the push messaging service, Chrome Task Manager shows that an event page "background.js" gets loaded, then offloaded in a few seconds disappearing from the Task manager. However, a popup window with a message does not appear.
How this app needs to be changed to show popup messages without any extra Chrome windows running?
The sample app does not show notification from "background page is inactive" state because when the background page is woken up, the event handler for chrome.pushMessaging.onMessage is not set up.
When user launches the app by clicking on its icon, the chrome.app.runtime.onLaunched() event is fired. But when background page is activated because of some incoming event (like push messaging or alarm), the onLaunched is not fired - instead, only the 'initial script', the JS code outside of functions, is executed. The initial script of background page must register event listeners so after initial load Chrome knows which handler to call. The sample app only registers the onMessage handler in onLaunched, but not from initial script.
It is easy to 'fix' the sample app - just move the call of setupPush() from onLaunched() handler to the very end of background.js file:
background.js:
....
// When a Push Message arrives, show it as a text notification (toast)
function showPushMessage(payload, subChannel) {
var notification = window.webkitNotifications.createNotification(
'icon.png', 'Push Message',
"Push message for you! " +
payload +" [" + subChannel + "]");
notification.show();
}
setupPush(); // <-- this executes every time page loads, not only in onLaunched
This will cause setupPush() to be executed every time background page is activated, whether user launched the app or the app is started in background in response to incoming push message.
This question / answer explained what is missing:
"Because the listeners themselves only exist in the context of the event page, you must use addListener each time the event page loads; only doing so at runtime.onInstalled by itself is insufficient."
To fix push-sample-app, all is needed is to add to background.js:
// Register with the Push Messaging system for the Push Message.
chrome.pushMessaging.onMessage.addListener(messageCallback);

How to Display Text in the System Tray

I've seen in some Microsoft WP apps where they display text in the system tray along with the time, and then when the user taps the system tray the text disappears and the normal system tray data (signal, power, etc) comes down and is displayed. An example of this would be the bing weather app on WP8. I'd like to be able to implement the same feature in an app I am creating, where the user always sees some sort of system tray data, such as time with the name of the app, or the full system tray display that can normally be viewed. Is this possible for developers or is this some sort of thing only Microsoft has the ability to do? To note, I do not mean displaying text while a progress bar is shown.
Use this code would work for you:
ProgressIndicator prog = new ProgressIndicator();
prog.IsIndeterminate = false;
prog.Text = "Your text";
prog.IsVisible = true;
SystemTray.SetProgressIndicator(this, prog);
ProgressIndicator would need
using Microsoft.Phone.Shell; namespace

How to put About us and fedback dialog in wp8 application

How to put About us and fedback dialog in wp8 application. I want the user to click on an icon and see the about us descrption and able to give feedback also.
For review =>
MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
marketplaceReviewTask.Show();
For the about page, create basic page and put what do you want in.