Is it possible for an XNA game/app to obtain it's own store link url through code or would I have to submit an app, wait for it's store link to become available and release an update including the store link?
Basically I want the player to be able to post his or her score to any social networks set up along with a link to the store page.
-Short question I know but my Google-Fu failed me this time.
To get a store URL, you will need to get hold of the app id. This is done by calling GetManifestAttributeValue. Note that the actual app id (Product ID) is generated when the app is published, and is different than the temporary one that is in WMAppManifest.xml. This causes a chicken and egg scenario when it comes to testing this.
See this for detailed instructions:
http://code.msdn.microsoft.com/Generating-a-Windows-Phone-9d19f939/
If all you need is to link to store from within your app, then use MarketplaceDetailTask to launch to the store. Leave ContentIdentifier as null and it will attempt to bring up the detail page of the current app. If you need to bring up the detail page of a different app, then you will need to know the app id, which you can only get after that app has been published.
http://msdn.microsoft.com/en-us/library/hh394017%28v=vs.92%29.aspx
Related
Using Xamarin Ios. in Apps theres usually a pop up on launch that says "(app name) Would like to access your location" or photos, or things along these lines. i couldnt find any information on how to implement this, or even what this confirmation/permission process is called. can someone point me in the right direction? it would be much appreciated
When your application needs to invoke some function that involves user privacy,suah as Camera,Contacts andLocation Services. You will be prompted for authorization by the system.
You should add items in Info.plist As shown in the following image.For example if you want to use Location Services. Otherwise it will be rejected when you want to upload your application to APP Store.
There also some other privacies.Here is a document link for you to referring to:Apple Document
We have an application that runs as service on windows. The service periodically checks for active Internet Explorer instances using SHDocVw.ShellWindows(). With this, we are able to capture the URL in each of the IE instances.
My Question:
Is it possible to find out how the webpage in each of these IE instances were launched. For example -
Did user type in url in IE to load the webpage?
Did the user select the link from another IE tab to launch ?
Did the user launch IE instance from another desktop application like outlook etc
Thank you.
The closest thing I could find to your specific requirement was this also check out the part 2 of the same blog where some edge cases have been discussed.
The part 1 of the blog talks about a registry key named TypedURLs (path: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs) which can be found in the registry editor, the rules of updation of this key are like this:
If a link is copied and pasted from a web page to the URL address bar and the user hits enter, this will also populate the key, as this is akin to physically typing in the entire address. If an invalid address of a webpage or resource that cannot be located is entered, the key will not be populated until either the connection or the request is completed (whether it succeeded or failed). If IE’s Stop function is selected before the connection is finished or the resource is located, the key will not be populated.
It is important to note that websites visited with the browser via hyperlinks, redirects, the IE Favorites menu or the user’s home page will not populate this key. Also, when a user selects to delete their browsing history using IE’s built-in function, this key is cleared.
Hope it helps!
With the Facebook SDK it seems like they allow you to invite your friends to join the application through the AppRequest section of the SDK. However I don't see anywhere in the SDK where you can reward users for inviting friends. I know this is possible because it's been done so many times, so how it can be done?
For example, lets say:
1. User A invites User B to use the application.
2. User B downloads the application.
3. User A receives 100 coins for inviting User B.
I'm completely lost here, examples using any SDK, regardless of language, would be appreciated.
Since Facebook app invites are based on AppLinks, that is where you need to look for a solution. I will explain this by using an Android example scenario.
When constructing an app invite (using the dialog), you are specifying an AppLinks URL. This URL can be unique to each user that sends out invites, or even to each individual invite. E.g.: https://www.example.com/invite_applink?invite_id=12345. By creating one AppLink url for e.g. each user who invites others, you embed invite-sender attribution (which is what you are saying you want) into your AppLinks URL.
The way the Facebook app figures out how to open your app from the "app invites" section, is by following the AppLinks specification.
This specification states that in the <head> section of the HTML document that lives at https://www.example.com/invite_applink, there has to be appropriate <meta> data that describes how your app can be opened/deep-linked into. One part of that is the al:android:url property, which could be used like this: <meta property="al:android:url" content="example://invite_from_fb?invite_id=12345" />
Observe how the url contains a parameter invite_id=12345, where 12345 is the same value as the one used in the invite_id parameter of the AppLinks URL above.
When the invited user now opens the app from the deep-linking URI example://invite_from_fb?invite_id=12345, the app will be opened from an intent that contains this information.
When your app's Activity opens you can grab the Intent that opened the Activity, and get from it the Uri that was used to open the app: Intent.getData(). More on this on the Android docs on "Allowing other Apps to Start Your Activity"
At this point, the ID that attributes an app invite to a user has made from the sender into the running app of the recipient. Now the app on the recipient's device needs to call your server and let it know which invite_id was used to open it. To avoid that multiple such attributions originate from one user (who may have received invites from multiple people), you could hold off on sending this attribution data until the user has performed some sort of login (e.g. Facebook Login) and you are able to ignore e.g. all attributions after the first one.
I have this weird problem my website won't cache the mainsite!
Here is a little overview about what I am trying to do
The first page that is being loaded is the
[DidTheUserLoggedInBefore?.html]
which checks if the user already has logged in or not depending on that result the user will be redirected to
either [LOGIN.html] or [MAINPAGE.HTML]
pretty simple!
But here comes the problem when the user restarts the app in Offline mode the App should redirect immediately to the mainpage (assuming the previous login was a success).
But that doesnt happen at all.
Instead the [DidTheUserLoggedInBefore?.html] from cache was called (which is correct) and starts loading the mainpage which isnt in cache which results in a whitescreen aka my error.
So how do I get my App to cache the Mainpage?
I've tried setting CacheSize to 100, but that didn't changed a thing :(
You can't check if the user has logged in with a .html file... You need some sort of server side language to set a cookie... Anyway this isn't much clear, is your "app" just a webview?
I couldn't let the webview cache more than 2 (simple) webpages...
WebView ignores he offline.manifest.php file too ...
I'm trying to perform login request in C#, but i don't know how to do it. I tried to find aspx web API but with no result. Do you know something about it?
here you have url: https://www.bikes-srm.pl/Login.aspx
Everything I tried is send request witch this header:
webreq.Headers["Authorization"] = "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes("login:password"));
Seeing how you tagged ASP.NET and mentioned "c# mobile app," here's one potential answer to your problem. This article covers the approach in detail, summarized below:
You can use a WebBrowser control to login to a website, wait until the content is loaded, and then retrieve the HTML data, cookies, get/set values of input elements, and access running scripts.
However, keep in mind:
Security: If more than one person can login, you will need to sandbox each user, clear tracking data, cookies, etc. at the end of each session and manage multiple states. If financial transactions occur through that website, you're taking risks.
Harder to maintain: The id's / names for the form fields or URLs can change, and when they do, your program may break.
Liability: from a legal perspective, who's responsible for what happens through your program? Do you have written permission to access their website from your program?
WebBrowser control is a part of System.Windows.Forms, but it looks like you'll be using it from within an ASP.NET site or a mobile app. What are the consequences? Research this.