How to detect if I app open via URL(Deeplinking) or normally launch in ionic 2? - ionic2

I have implemeted the deeplinking in our application in our application it is working properly but i have the function that is created in our app.component.ts file and i will check the user is app open via deeplinking or not tell me anyone it is possible to detect app open via URL or not?

Related

Flutter Windows Desktop: Integrate with the File Activation API

I am looking for some guidance on implementing the Windows File Activation API with my Flutter App, that is, a user able to open a file associated with my App and have that file path passed to my app instance on startup and during runtime if the user opens a file whilst the app is already started.
I have found the following link from Microsoft that details how to achieve this within a UWP Application. However I have no been able to implement it completely with my limited knowledge of C++.
https://learn.microsoft.com/en-us/windows/uwp/launch-resume/handle-file-activation
It seems that the File Activation API relies on the WinRT API. Is this already bundled with the Flutter runner project or does this need to be imported separately?
To hook into the File Activation API, I need to create a class that is derived from the Application class, Is it possible to achieve this whilst still having a reference to the Platform Channels provided so that the events can be passed into the Dart code?
Is it even a valid approach to use the WinRT API's or is there another API I have missed?

Postman unable to show UI - windows native app

When I click on Postman native windows app to open it shows the following UI but does not load.
How to fix it?
Right click on the installed app icon and enter the following in Target
C:\Users\xxxx\AppData\Local\Postman\Update.exe --processStart "Postman.exe" --process-start-args="--disable-gpu"
Click here to read more about the issue

C++ windows service program called DLL is not working properly

I wrote a websocket server program running on Windows service.According to project needs, a DLL is called. This DLL needs to read my computer shagn a file under my document.However, the windows service program called DLL can succeed, but DLL failed to read the file under my document. When the server is not running as the windows service, DLL can read the files under my document successfully. I'm so depressed, I don't know why.Who can help me.Thank you
When several users using the same PC, each regular user have a My Document dir, and can't access other user's My Document.
When You run a service, it run by default as Local System or Local Service which are restrict users, and doesn't have access to your My Document dir.
You must think: how the service can choose from all other users in your PC which is the user it should take the file from?
The simple solution is to run the service as your user. You can try it manually by open the service Properties (on services, right click and choose Properties, or double click), choose Log On tab, and fill the acount username and password to your username and password.
A real solution is to place the file in a fixed place, like %LocalAppData%\AppName, not depending on any user.

Python Flask application host in IIS with fast cgi process

Please guide me how python2.7 Flask framework application host in IIS with fast CGI process. I searched so many ideas on the internet but it doesn't help me till now. Anyone can give me simple process to do it and if you have video tutorial then please share the link of it. Some trial I want to specify,
Install IIS feature 'on' like CGI
Create Virtual Environment and link to physical project folder
Convert to Application
select application --> Click on Handler Mapping--> Add Script Map and input required data like *.py, python27.exe %s %s --> ok
Placed all .py file in 'cgi-bin' folder
convert into application
Edit in 'C:\Windows\System32\inetsrv\config\applicationHost.config'
Open application in browser with sample py application like print 'Hello'. Getting output as I mentioned in sanp.
*** First I tried with simple application then I want to host Flask Framework.

SharePoint-hosted Task pane app not authenticating

Summary:
I have an Office 365 E3 account where I'm trying to deploy a Word task pane app that will read some SharePoint list data. Right now, I'm just trying to get the task pane app to load, however, it shows the Office 365 login page (in the pane) but does not do anything after clicking Login.
Details:
I went through the instructions provided here:
http://msdn.microsoft.com/en-us/library/office/fp179815.aspx
Basically, I create an App for SharePoint configured as SharePoint-hosted, then in the same project, added an App for Office (Task Pane App for Word only). The SharePoint app also has a custom document library.
I am able to install the app to my App Catalog, and it correctly shows up in Site Contents where I see it being provisioned to the app web. I can also launch Word 2013 with the Trusted App Catalog configured correctly, and I am able to see my Task Pane App and insert it. When I click Insert, it loads it but prompts for credentials.
I am using the same credentials all throughout this exercise so by virtue of being able to install and deploy the SharePoint app, you can trust that I'm providing the right credentials.
It also appears the custom document library is never created - I wonder if both suffer from the same underlying issue.
I encountered the same problem and the solution provided in the answer below did not help.
After some desparation i created a taskpane app using the Napa Cloud App, opened the application in Visual Studio and went looking for differences.
In the Taskpane app manifest.xml file i found the following entries which were missing in my own application manifest:
<AppDomains>
<AppDomain>https://login.microsoftonline-int.com</AppDomain>
<AppDomain>https://login.microsoftonline.com</AppDomain>
</AppDomains>
This solved my problem and cured one horrible friday.
I was able to get this to work. It turns out doing a Deploy from Visual Studio (whether you right-clicked Deploy or F5-debug), the installation of the app isn't enough.
To make it work, I skipped doing a Deploy all together, but instead published my app. I then took the .app file and loaded it in my App Packages folder, and then deployed it from there.
Unfortunately, I don't know the difference between the two, but I'm assuming it has something to do with provisioning the app web for the Office App.