I'm new to Windows Phone 8 development. I'm coming from an ASP.NET Web Forms background where settings are stored in Web.Config. As some of you know, the Web.Config settings are hierarchical in nature where values are overridden depending on their location (root Web.config, machine.config, app level Web.config)
I am creating an app that calls into a third party API. The third party API uses OAuth which requires personal key information. I plan on open sourcing the code so I don't want to expose those keys.
If this was ASP.NET, I'd store the keys in a Web.config file outside of the app. This way, I'd be safe to publish my app to the public.
How would I achieve the same with a Windows Phone 8 app?
App.config functionality does not exist in Silverlight and WP apps. You can use IsolatedStorageSettings.ApplicationSettings to save/receive settings.
If you still want to use something similar to App.config then you can check this link for a similar functionality implementation.
Related
In a Winforms app converted into a uwp app (Centennial) - how can the app check for the licensing status?
In UWP I can use CurrentApp.LicenseInformation but that's under Windows.ApplicationModel.Store, and I can't find that in the Add Reference to Winforms.
To be able to use the WinRT APIs from your Winforms project, please add a reference to this WinMD reference: C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Windows.winmd from your Winforms project. I'd also encourage you to take a look at the Desktop Bridge samples on GitHub: https://github.com/Microsoft/DesktopBridgeToUWP-Samples
Btw, since you asked the Store licensing question, have you already filled up this form: https://developer.microsoft.com/en-us/windows/projects/campaigns/desktop-bridge yet? Once you fill up the form, someone from MSFT will contact you to work with you further regarding further help on the onboarding to the Store process...Let me know if you are stuck there...
I have a UWP Application, which needs to be build for two different project configurations i.e for two sets of Microsoft store Application identity and client id and client secret.
So for making two different builds all I do is change the identity tag in package.appxmanifest file. I need to test PushNotifications using WNS for these two project configurations.
The issue is when I manually set the identity tag in package.appxmanifest, the app doesnot receive a notification, but when I asssociate it with the store with the App in Windows store, the app starts getting push notification.
Is there any other file or certificate that needs to be removed for manually changing the identity tag, and making the App work?
the identity tag (inluce phone product id and package name) of the app must be the same as displayed in app store to enable push for this package. When you asssociate it with the app in store, Visual Studio did the copy paste for you.
To have difference build setting, just create a new app in dev center, asssociate your package with it before building to get new configuration.
My requirement is to associate a .exe file with a Windows Store 8.1 app. Is it acceptable to give a link through about section of the store app to a web address from where the user can download the .exe file. Will there be any problem with the certification process. Please suggest any suitable alternative if possible.
There is nothing in the Windows Store Policies that says otherwise. You can't attempt to run the *.exe file programmatically of course, but you should be fine otherwise.
Since the app is network-capable, remember to add a Privacy Policy (see here) detailing whether any user information is sent to an external website/server.
Is there any way of programmatically adding a new note to OneNote via a Windows Phone 8 app? I know I can't interact directly with the OneNote app, but wondering if there's a way to add directly to the Personal (Web) file on SkyDrive via an API or sending an email or whatever. I've done some searching and I'm guessing not, but can't hurt to ask, right?
You can connect so SkyDrive via the Live Connect API. There's a tutorial for interacting with SkyDrive from Windows Phone here. I've not tried interacting with a OneNote file but if it's on SkyDrive, it should be accessible.
Having said that, OneNote uses a proprietary format and I'm not sure if there's an API you can call on the phone to create OneNote pages programmatically. It does have an interface which you could look into but it seems you might need to do that server side and interact via a web service from your app.
I am using a Java based Portal Platform. I need to show within my portal information stored in Lotus Notes. Considering security issues, what are the recommended ways to do this?
Are there any open source JSR 168 portlets out there that integrate with Lotus Notes?
From my portal platform, I can call web services to get this information. Is this recommended? If so where can I find information about web service APIĀ“s available for Lotus Notes?
Are there any java components that I can install on my portal platform that will make available a java API to access Lotus Notes information?
You have two main options.
First you can talk to Domino (Notes is the client, Domino is the server) directly using the CORBA java interface over IIOP. This will give you full access to the Domino object model and allow you to write the code to do whatever it is you need to do in your java platform.
Secondly you could go over web services. This will be much easier to set up, but you will have to deploy code for what ever it is you want to do on the Domino server. In ND7 and up Domino will build all the web service elements for you from a WSDL or method stub.
From a security point of view, the user connecting to the service will need to be authenticated with Domino. This could be a system account or the actual user if you can proxy the login through.
Another angle I've seen is to just proxy HTTP calls through the portlet to Domino.
Assuming you have SSO setup between portal and domino the simplest solution is to use the Notes View Portlet included with portal. If you need to show the data in a more customized format then I would suggest to use portlet factory. If neither of the previous work for you then you should be able to develop a custom portet using RAD and the notes java api.