I am building a Universal App using Prism framework. In my Windows Phone app, I have a scenario that I navigate from Page 1 to Page 2, and from Page 2 to Page 3. On click of the Back button on Page 3, I want to go back to Page 1.
I figured that only way I can do is by removing the previous entry from the back stack. But, unfortunately, the NavigationService provided by Prism doesn't have such a method. There is ClearHistroy, but that is not what I want.
Is there a way?
Appreciate your help.
Naweed
For the moment the current implementation of PRISM has stopped ( there is a team working on a newer version - so let's hope they extend this for Win10 ).
So you need to do this the 'old' way, get hold of the Frame in the app and remove an entry from the BackStack. You could use a PRISM event to notify the page and in the code behind of that page run
if(this.Frame.CanGoBack)
{
this.Frame.BackStack.RemoveAt(0);
}
Related
I have a link in my app that points to an app protocol of type myProtocol://". Until a few days ago this was working completely fine, whenever you clicked on the link, the native app would open.
However, iOS9.2 seems to have broken this. Now what happens is when the links is clicked, I get a prompt to open the native app which disappears after roughly 1 second, not even close to giving the user enough time to access. Shortly afterwards I get prompted to go to the App Store to the app's page.
Any idea why this is happening and what changes in iOS9.2 that is causing this would be helpful.
It seems that with iOS9.2, Apple is making a move towards Universal Links and traditional deeplinking is not supported anymore. While I was not able to find any information published direct on iOS9.2 release notes, following links indicate the same:
https://blog.branch.io/ios-9.2-redirection-update-uri-scheme-and-universal-links
https://www.adjust.com/overview/features/2015/12/11/ios-9-2-deeplinking/
I'm a newbie about windows phone, this is my first project, a app calculate calories when running in wp8.1 RT, but I have a problem, basically I have 3 pages, mainpage is page 1, how must I do whenever I click a button in page 1 (start running), a stopwatch in page 3 starts counting and start receiving data gps of Map in page 2 (distance,speed) automatically, ie I'm still in page 1, the other pages run in background if i don't navigate to them ? ( I implemented stopwatch and map in project), forgive me because I'm not good at English.
In a Windows Phone App (does not matter if is silverlight or RT) you just can run a page at time.
Instead use several pages, you can use Background task or Geofencing.
I hope it helps you.
I am facing a weird problem in windows phone 8.1 page navigation.
I have got two pages.
Login page > Consists of app bar in which one of the button take us to second page.
Second page is Cached using MVVM i.e Registered the Second page to IOC on launch of app and binding the instance of it to page 2 XAML.
In the Second page View model Constructor I am making Server call to get the data.
Problems facing.
On Clicking the app bar button to navigate to second page, the app stays in the first page until the second page make server call and get the response. Then its navigating.
But actual behavior must be it should navigate to second page and wait there to get response showing progress bar.
One quick fix is I made the thread to stop for some 50 millisecond in page 2 constructor of view model and then made service call
It navigated to Second page immediately and waited there until response but the previous page App Bar still displays until I get the response.
I even find the quick solution for it by Collapsing the App bar just before Navigating to that page.
I know these quick fixes are not good. So please help me to find out the problem or if you already know please revert back with the solution.
Don't use constructor to initiate the web service calls . Use OnNavigatedTo or Page_Loaded event .
I published app with game center achievements to app store. Achievements were working and updating. I made a bug fix in non-game center code class and submitted the updated app version to store. Now, I've noticed when I run the new version updated from the store, the game center no longer shows the app achievements button. With the first version of the app, I had to do a lot of configurations thru iTunes Connect to define my leader board and achievements but with the update nothing changed so I left things alone. Did I miss a step? The updated version is showing the high scores correctly but the achievements are not showing. In fact, when i enter game center directly and look for my app, the Achievements button in game center isn't even present for my app like it was in the first version and above the app title it displays, "No Achievements"
App target is iOS 6 for dev in objective-c with 4.3 backwards compatibility for iPhone. I used the iPhone 6.0 simulator and a iPhone 4 for testing.
I've searched your FAQ and couldn't find anything about updated app submissions, so hope you can help. If I missed something, a link will work but I really need to fix this problem since the app is "live".
Thanks for any help offered.
P.S. The simulator shows my achievements button. :(
Found my answer elsewhere. I did miss a step. Turns out Achievements must be re-selected and enabled for an app each time you upload a version even when you're not changing anything. Thankfully, they have a "select all" option. Looks like I'll be releasing another version just to re-enable my achievements. sigh...
Im creating an app (rather big one) with Worklight. When im testing the app in an android phone and press the backbutton it closes the app.. now i want it to go back one page. Right now the page navigation is with dojox mobile implemented system. this way:
<button data-dojo-type="dojox.mobile.ToolBarButton" data-dojo-props="transition:'fade',dir:'1',moveTo:'Contact'" class="buttonHem" style="color:black; font-size:1em;">Kontakta Oss</button>
is there a way to use the android backbutton without having to redo everything?
we have deadline in 2 weeks so there is really no time to redo the app with jquery mobile..
Answers will be appreciated.
If you're talking about a hardware Android back button you have a WL API to override it's behaviour.
WL.App.overrideBackButton(function() { doSomething });
and WL.App.resetBackButton();
The back button functionality should work in Dojo Mobile. Looking at the documentation for ToolBarButton I think what you need to do is use a # in front of your next view for the moveTo attribute. In your example it would be moveTo:'#Contact' Take a look at the moveTo attribute in the doc below for more info.
http://dojotoolkit.org/reference-guide/1.8/dojox/mobile/ToolBarButton.html