GithubHelp home page GithubHelp logo

nordnet / cordova-universal-links-plugin Goto Github PK

View Code? Open in Web Editor NEW
349.0 349.0 525.0 449 KB

[DEPRECATED] - Cordova plugin to support Universal/Deep Links for iOS/Android.

Home Page: https://github.com/nordnet/cordova-universal-links-plugin/issues/160

License: MIT License

Java 22.50% JavaScript 48.70% HTML 0.97% Objective-C 27.82%

cordova-universal-links-plugin's People

Contributors

chun-yang avatar dpa99c avatar evyatar avatar ghybs avatar nikdemyankov avatar nordnet-deprecation-bot avatar schmidt avatar sundbry avatar tommi-l avatar yernandus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-universal-links-plugin's Issues

Event not firing if app first open

In my tests, following literally the guide, the event does not fire when the app is completely closed.

What I mean is that if the app is still running in in the foreground or in the background, the event is fired normally, and the url is handled by my javascript, showing the expected page.

However, if i kill the app, and run the same test command, the app gets opened, but no event is fired!

I am using latest Cordova and latest Ionic. Any hints?

Can universal links work in a SPA scenario?

I have the following use case:
My application is a SPA. The same code that is running the site is also running the app.
I do not want my site crawled and indexed via Google, except for the home page, so I have

<META NAME="ROBOTS" CONTENT="INDEX, NOFOLLOW">

in the index.html
I have tens of thousands of subpages like: https://ttapp.nl/#/poule/1011994
I want all these pages to open in the app, wherever on the internet such a link is clicked.
For Android I have configured universal-links and tested it locally through adb. These subpages all work as expected. But I can't get my head around what to configure for the

<link  rel='alternate' ...>

tag. Surely I can't possible list all subpages, and since there is just one occurrence of the HEAD- tag, being a SPA, all the subpages share this same declaration.

Can this be made to work? Any advice would be appreciated.

npm dependencies conflict. TypeError: xml2js.Builder is not a function.

Hi,

I ran into a problem with your custom dependency resolve mechanism in the afterPrepareHook. When it is run, it checks for the presence of dependent modules. It doesn't check for versions, however. As it happens, I have the xml2js module installed as a child dependency of another one of your plugins ;-)

> npm list xml2js
└─┬ [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      └── [email protected]

Now, since xml2js.Builder is a function available from xml2js > 4.0, I get the following error when preparing my project:

TypeError: xml2js.Builder is not a function
  at Object.writeJsonAsXml (/builds/youngcapital/youngcapital_mobile/plugins/cordova-universal-links-plugin/hooks/lib/xmlHelper.js:46:22)
  at Object.writePreferences (/builds/youngcapital/youngcapital_mobile/plugins/cordova-universal-links-plugin/hooks/lib/android/manifestWriter.js:34:15)
  at activateUniversalLinksInAndroid (/builds/youngcapital/youngcapital_mobile/plugins/cordova-universal-links-plugin/hooks/afterPrepareHook.js:59:25)
  at /builds/youngcapital/youngcapital_mobile/plugins/cordova-universal-links-plugin/hooks/afterPrepareHook.js:39:11
  at Array.forEach (native)
  at run (/builds/youngcapital/youngcapital_mobile/plugins/cordova-universal-links-plugin/hooks/afterPrepareHook.js:35:17)
  at module.exports (/builds/youngcapital/youngcapital_mobile/plugins/cordova-universal-links-plugin/hooks/afterPrepareHook.js:18:3)

My solution for this problem was to add the latest version of xml2js to my projects package.json, so the latest version is available for the plugin. But perhaps it is possible you could prepackage the dependencies inside the plugin, instead of reinventing npm? :-)

Handle event on appLaunch

Really cool plugin, but i have an issue.

I build an ionic app. For testing I added the event to both: first inside and second outside of the module.

It works great, if the app is already running in the background. If the app is not running, then the app is started, but the event is not triggered for handling the linkData.

android:autoVerify breaks android lower than 5.0

Because of this change: #42 my build breaks complaining about "No resource identifier found for attribute 'autoVerify' in package 'android'" which means i have too low android platform (4.0.2). I've tried 4.1.1 but the same result.

Looks like the android:autoVerify attribute has been added on API 23 which is supported by Android >= 5.

So this change is so breaking (for everyone on android < 5) that it shouldnt be a patch release!

Fix Cordova 5.4 warnings

When building for iOS with Cordova 5.4 we get the following warning:

The module "ConfigParser" has been factored into "cordova-common". 
Consider update your plugin hooks.

html links wont open the app

My config looks like that

<universal-links>
     <host name="timetable.co.il" />
</universal-links>

When I'm using adb shell am start the app is opens fine.

But when I'm using

<a href="http://timetable.co.il">open sesame</a>

the site is opened in the browser with www prefix and some other path.

Still not worked when I've added another host with www prefix.

Error: Cannot find module '../lang/isNative'

First of all, nice work with the plugin;

I just added the plugin via the stable repository

cordova plugin add cordova-universal-links-plugin

But as i run a build on android, i get this error:

<project>/hooks/after_prepare/010_add_platform_class.js 

add to body class: platform-android
ERROR running one or more of the platforms: Error: Cannot find module '../lang/isNative'
You may not have the required environment or OS to run this project

What am i missing?

Meteor Cordova build issue

Hi,

i experienced problems during cordova build process.

I received message:

'config.xml not found! Please, check that it exist\'s in your project\'s root directory.'

I debugged process and locate the problem in xmlHelper / readXmlAsJson method.

I resolved the issue with following patch:

xmlParser.parseString(xmlData.toString(), function(err, data) {

I posted this just to have it here documented for community. You can close the issue.

Thanks

iOS 9.0 build target

Hi, thanks for your nice plugin! One question: why do you set the iOS build target to 9.0? The project compiles just fine through XCode without it, right? Setting the IPHONEOS_DEPLOYMENT_TARGET to 9.0 severely limits the use of apps which include this plugin. Why not just remove your script? That way apps on iOS 9 devices will be able to use universal links and older devices will be able to continue to work without it. Graceful degradation...

Event is not dispatched on the cold start

If you launch the application first from the app icon, close it (by pressing home button on the phone) and then click on the UL link - JS event is captured.

But if you kill the app from task manager, and then click on the link - event is missed.

Keep getting "open in app" banner (IOS)

After doing all the steps whenever I access my site I get a smart-banner like "open in app"
which activates the applinks event of the plugin.

Is this how it suppose to behave? because I was under the impression that if I click/navigate to the url configured the app will open without going through Safari and without making the user do it explicitly

universalLinks empty object

Hello! My universalLinks seems to be defined, but empty.

If I run
document.addEventListener('deviceready', function() {
console.log(universalLinks);
}
it logs {}

And if I try do run universalLinks.subscribe(...)
I'm getting a big constrain error.
"Unable to simultaneously satisfy constraints."

I'm using XCode 7.2.
Any ideas?

Two entitlements files

@nikDemyankov

Hi again,

One more question about the plugin. I am using Xcode 7.0.1 and before I installed your plugin, my Cordova project already had an entitlements file in the Root directory with an entry for webcredentials:mydomain.com. The name of the file being My Project.entitlements. When I do a Cordova Prepare command, the plugin adds another entitlements file in the Resources directory with applinks:www.mydomain.com and the file has the exact same name as the other entitlements file in the ROOT directory. Everything works fine with the universal links as I posted before in the other post. My question is whether this is a bug or intentional?

I also noticed that under Build Settings > Code Signing > Code Signing Entitlements is pointing the entitlements file that the plugin created in the Resources directory.

Thanks!

event not firing for defined config.xml path

Having trouble getting events to run when I narrow the scope of the path in the config.xml file and build the app for iOS.

The url that would trigger the event: https://foobar.com/public/#/ResetPassword/1234 where 1234 is a server-generated token.

Currently, the app opens and the event fires if the path url attribute is set to the wildcard: <path url="*" event="ul_ResetPassword" />

If I change the path to what I need it to be in production, url="/public/#/ResetPassword/*", the app will open but the event never fires.

The apple-app-site-association file found on the domain:

{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "redacted",
                "paths": [
                    "/public/#/ResetPassword/*"
                ]
            }
        ]
    }
}

My JS code subscribing to the event in my Ionic app:

window.universalLinks.subscribe('ul_ResetPassword', dispatch);

Android web integration on Android 6.0 requires the intent to have android:autoVerify="true"

For Android web integration to work on Android 6.0, it requires that the intent filter defined in AndroidManifest.xml android:autoVerify="true"
such as

<intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW"/>
   <category android:name="android.intent.category.DEFAULT"/>
  <category android:name="android.intent.category.BROWSABLE"/>
   <data android:host="www.example.com" android:scheme="http"/>
</intent-filter>

as defined in

https://developer.android.com/training/app-links/index.html

Deep linking loads multiple instances of app on android

I am creating my app using Ionic and am testing the app on Android version 5.1.1.

I find that using the plugin does indeed allow the app to be launched when I click on a particular link which is lovely, thanks.

The issue is that if I already have the app open and then I click on a link inside of e.g. whatsapp, then a new instance of the app loads inside of whatsapp instead of using the already open app. This creates a strange user experience because in order to return to whatsapp I have to navigate backwards several times , whereas I would expect to just be able to switch from my app back to whatsapp using the familiar square button that allows you to see all open apps.

Thanks for taking to time to develop this plugin, it is very useful, I am just trying to understand if this is intended behaviour or a bug.

Thanks,

Matt

Universal Link Not Working from Web Page

I am able to get my universal link to fire using ADB. But I can't get it to fire from a web page using a link in the header. I've confirmed that I am using the generated link under 'ul_web_hooks'. Is there something that I am missing? If I go to the page I would expect the a prompt to ask if I want to pull up my app or automatically be forwarded to my app.

I am using Android 5.1.1 on a Nexus 7 (2013).

I've seen some recent information that indicates Google has clamped down on deep links.

http://blog.tapstream.com/google-changes-chrome-to-prevent-abusive/
http://blog.tapstream.com/why-has-google-broken-deeplinking-on-android/#comment-1906522285

Is anyone else having this issue? I am fairly new to Cordova. So please pardon my ignorance... Thanks

Error when trying to add plugin

Hi. I am trying to add cordova-universal-links-plugin to my app and I am getting following error:

uerceg:CordovaDemo uerceg$ cordova plugin add cordova-universal-links-plugin
Fetching plugin "cordova-universal-links-plugin" via npm
npm http GET https://registry.npmjs.org/cordova-universal-links-plugin
npm http 401 https://registry.npmjs.org/cordova-universal-links-plugin
TypeError: Cannot read property 'latest' of undefined
    at next (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/lib/cache.js:687:35)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/lib/cache.js:675:5
    at saved (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:142:7)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
    at FSReqWrap.oncomplete (fs.js:95:15)

Any ideas how to add the plugin?

For the record, I am using Cordova version 5.1.1.

Thanks in advance.

Multiple wildcard in url is broken

According to the documentation https://github.com/nordnet/cordova-universal-links-plugin#path path with multiple wildcard are valid
Example :
<path url="*mypath*" />

But the generated AndroidManifest contains :
<data android:pathPattern="/.*mypath*"/>
(note the missing point before the last wildcard)

I think that line is responsible :
https://github.com/nordnet/cordova-universal-links-plugin/blob/master/hooks/lib/android/manifestWriter.js#L301

pathName = pathName.replace('*', '.*');

It should be :

pathName = pathName.replace(/\*/g, '.*');

Make JS module, that will handle the UL events

As stated in #3 - we need a module, that does something like this:

function onDeviceReady() {
  console.log('deviceready');

  // set handler for the event
  universalLinks.on('event_name', onULOpen);
};

function onULOpen(event) {
  // handle the event
}

Internally, it will store the events, received from the native side; and then universalLinks.on(...) is called - send them to the callback. Basically, you are subscribing to the event through the plugins module.

Error in building iOS (sorry for lack of details here)

cordova-universal-links-plugin 1.0.0 "Universal Links Plugin"

I don't mind giving more information at all. I'm not sure exactly what would help you in this situation.

cordova build results in the following errors:

/Users/john/deeplink-app/platforms/ios/DeepLinkApp/Plugins/cordova-universal-links-plugin/Model/CULHost.h:36:57: error: expected '>'
@property (nonatomic, readonly, strong) NSArray<CULPath *> *paths;
                                                        ^
/Users/john/deeplink-app/platforms/ios/DeepLinkApp/Plugins/cordova-universal-links-plugin/Model/CULHost.h:36:58: error: expected member name or ';' after declaration specifiers
@property (nonatomic, readonly, strong) NSArray<CULPath *> *paths;
                                        ~~~~~~~          ^
/Users/john/deeplink-app/platforms/ios/DeepLinkApp/Plugins/cordova-universal-links-plugin/Model/CULHost.h:36:1: error: property requires fields to be named
@property (nonatomic, readonly, strong) NSArray<CULPath *> *paths;
^                                       ~~~~~~~~~~~~~~~~~
/Users/john/deeplink-app/platforms/ios/DeepLinkApp/Plugins/cordova-universal-links-plugin/Model/CULHost.h:36:58: error: expected ';' at end of declaration list
@property (nonatomic, readonly, strong) NSArray<CULPath *> *paths;
                                                         ^
                                                         ;
/Users/john/deeplink-app/platforms/ios/DeepLinkApp/Plugins/cordova-universal-links-plugin/Model/CULHost.h:36:58: error: expected identifier or '('
In file included from /Users/john/deeplink-app/platforms/ios/DeepLinkApp/Plugins/cordova-universal-links-plugin/CULPlugin.m:8:
/Users/john/deeplink-app/platforms/ios/DeepLinkApp/Plugins/cordova-universal-links-plugin/Parser/CULConfigXmlParser.h:20:20: error: expected '>'
+ (NSArray<CULHost *> *)parse;
                   ^
/Users/john/deeplink-app/platforms/ios/DeepLinkApp/Plugins/cordova-universal-links-plugin/Parser/CULConfigXmlParser.h:20:21: error: expected ')'
+ (NSArray<CULHost *> *)parse;
                    ^
/Users/john/deeplink-app/platforms/ios/DeepLinkApp/Plugins/cordova-universal-links-plugin/Parser/CULConfigXmlParser.h:20:3: note: to match this '('
+ (NSArray<CULHost *> *)parse;
  ^
7 errors generated.

** BUILD FAILED **


The following build commands failed:
  CompileC build/DeepLinkApp.build/Debug-iphonesimulator/DeepLinkApp.build/Objects-normal/i386/CULPlugin.o DeepLinkApp/Plugins/cordova-universal-links-plugin/CULPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/john/deeplink-app/platforms/ios/cordova/build-debug.xcconfig,-project,DeepLinkApp.xcodeproj,ARCHS=i386,-target,DeepLinkApp,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/john/deeplink-app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/john/deeplink-app/platforms/ios/build/sharedpch
ERROR building one of the platforms: Error: /Users/john/deeplink-app/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Users/john/deeplink-app/platforms/ios/cordova/build: Command failed with exit code 2
    at ChildProcess.whenDone (/Users/john/.npm/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

universal link is not firing JS event on iOS 9

Thanks for creating this plugin! I have got to the point of integration where the app is catching URLs and opening the App instead of a webpage, however once reaching the App the javascript event never fires so I cannot proceed any further.

My config.xml contains:

<universal-links>
    <host name="artory.qualia.org.uk">
        <path url="/link/*" event="handleUniversalLink" />    
    </host>
</universal-links>

This should catch anything on the /link/ url and fire the "handleUniversalLink" event listener. In the JS I have:

document.addEventListener('handleUniversalLink', handleUniversalLink);
function handleUniversalLink(payload) {
    console.log("received universal link payload:", payload);
}

It seems the event listener is never firing for handleUniversalLink and I have tried repeatedly using different variables such as the example vars etc and seem to have no luck.

Could it be because my URLs are being served from a sub-domain maybe? There are absolutely no errors in the JS or xCode console so no leads, and the plugin is definitely getting initialised on launch ([CDVTimer][universallinks] 1.968980ms).

Should Universal Links work in iOS when using TestFlight?

Now I have my app working with universal links in Android, the next challenge is to get iOS working.
I have associated domains configured for both development and distribution.
I have placed an apple-app-site-association in the root of my website. I have not signed it as current Apple docs state that this is not necessary for universal links. It is served with mime type application/json. The contents is:

{
  "applinks": {
    "apps": [],
    "details": [
      {
        "appID": "S5ZZ8MTUAL.nl.ttapp",
        "paths": [
          "*"
        ]
      }
    ]
  }
}

I have submitted my app to itunesconnect and put it in the Internal Testing category.
As soon as I install (not open) the app through TestFlight I see the device do a request to my apple-app-site-association file.
However, the app is not opened from any link. I have tested from Safari, mail and pushbullet, but all of them just open a Safari window.
Do I really have to put the app into full production in order to get this to work, or have I missed some other crucial step?

Unable to install plugin without root permissions

Trying to install plugin using cordova cli,
Unable to install npm dependecies without root permissions,
If using root permission, all other operation in cordova cli (build/run) require root permission

Cordova cli version 6.0
Npm version 2.7.3

Error on running: cordova plugins add cordova-universal-links-plugin
Fetching plugin "cordova-universal-links-plugin" via npm
Installing "cordova-universal-links-plugin" for android
Checking dependencies:
Can't find module mkpath, running npm install
Installing "cordova-universal-links-plugin" for ios
Failed to install module mkpath:Error: Command failed: /bin/sh -c npm install -D mkpath
npm WARN locking Error: EACCES, open '/Users/Sergo/.npm/_locks/mkpath-2eed79c4f3589c41.lock'
npm WARN locking at Error (native)
npm WARN locking /Users/Sergo/.npm/_locks/mkpath-2eed79c4f3589c41.lock failed { [Error: EACCES, open '/Users/Sergo/.npm/_locks/mkpath-2eed79c4f3589c41.lock']
npm WARN locking errno: -13,
npm WARN locking code: 'EACCES',
npm WARN locking path: '/Users/Sergo/.npm/_locks/mkpath-2eed79c4f3589c41.lock' }
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-D" "mkpath"
npm ERR! node v0.12.1
npm ERR! npm v2.7.3

npm ERR! Attempt to unlock /Users/Sergo/src/oktopost/mobile/board/node_modules/mkpath, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /Users/Sergo/src/oktopost/mobile/board/npm-debug.log

Universal link doesnt work on root location

my problem is the following, I had set the apple-app-site-association on my site, and set all necessary configuration to make it work , and it works perfectly , it open the app instantly , but the problem is that only works when the url is not the root

https ...mywebsite.com/test =>works, it goes to the app.

https ...mywebsite.com/anything =>works , goes to the app.

https ...mywebsite.com/ =>doesn't work , goes to the browser.

https ...www.mywebsite.com =>doesn't work , goes to the browser.

https ...mywebsite.com?test=123 =>doesn't work , goes to the browser.

Im using cordova , my config xml includes

<host name="www.mywebsite.com" scheme="https" event="launchedAppFromLink"/>

my apple-app-site-association

{
"applinks": {
"apps": [],
"details": [
{
"appID": ".com.mywebsite.app",
"paths": [
"*"
]
}
]
}
}
The file format , the signature, and everything seems to be fine, thats why its working on non root urls.

Is anybody know how to solve this issue?

Desire a "Not" feature for a path (BTW We love this plugin - thank you!!!)

We have 1 path that we Don't want to open in our app (especially when we're already in the app).
For ex, we have a link to a "Printable" version of a form, that we want to force the user to open in a browser. A link to this "Printable" form is within our app, so there might be another way to force the user to open it with a browser (preventing our app from being one of the choices in Android's Open App list). ios permits this: "To specify an area that should not be handled as a universal link, add “NOT ” (including a space after the T) to the beginning of the path string.". Perhaps Android doesn't support it.

Adding <universal-links> block in config.xml breaks "cordova platform add ios"

I've poured over the documents and couldn't find anything addressing this issue. I added a universal links block to my config.xml that looks like

<universal-links>
    <host name='store-name.myshopify.com' />
</universal-links>

And as a result I get the error

Error: ENOENT: no such file or directory, open '/Users/Keystoke/Desktop/new_preview_test/platforms/ios/CordovaLib/VERSION'

when trying to run 'cordova platform add ios'. In fact, it's as if CordovaLib isn't even being created, there's no directory at the time of the of crash.

I'm able to add the platform just fine when I remove that block from my config.xml, all I get is the expected error of " tag is not set in the config.xml. Universal Links plugin is not going to work." Any ideas on what could be causing this?

Android Deep Link Not firing on Resume

@nikDemyankov

I'm having an issue on Android. If my app is not running and I click on a link that launches the app, the app loads from a cold start and the universal link plugin event fires just fine. If I leave the app running, then click on another link, the app opens, fires the onResume event, but the universal plugin link event doesn't seem to fire. Any ideas?

My device is running Android 4.4.2 and tested on another device running 4.4.4. Both have same issue.

Event not firing on Android

The universal Links event is not firing on Android with plugin V1.1.

The app was done before with plugin V 1.0 and addEventlistner. Because index.html i had to add the addEventlistener at the beginning of index.html. It has worked.
With V1.1 i tried universalLinks.subscribe(null, function(){alert('alive')}); in onDeviceReady. When tappnig on a link in Chrome i can start the app. But the event is never fired.

Not adding intent-filter to activity

When I'm using the guide everything works fine.
But when I tried to add the plugin to existing project the activity never gets the new intent-filter at the Manifest, and there is no action and data elements no where.

The universal-link part at the config is the same.
What should I do?

Does this plugin work with Phonegap Build?

I can't seem to get this to work for Phonegap Build for iOS 9.2. Are the entitlements getting set correctly with PGB?

When I add my .ipa file into
https://limitless-sierra-4673.herokuapp.com/

it complains: Must be able to find entitlements. I looked and there is no archived-expanded-entitlements.xcent at the root of the app contents.

Has anyone got it to work with Phongap Build. Or am I missing something?

scheme="https" not working on android

even though i am using scheme="https" application only open with http links

I've put this in config.xml

<universal-links> <host name="example.com" scheme="https"> <path url="/path" event="ul_event" /> </host> </universal-links>

PS: I have this problem ith v1.0.0 and 1.1.0

build failed on ios

..../www/picktags.com/public_html/app/platforms/ios/build/PickTags.build/Debug-iphonesimulator/PickTags.build/Objects-normal/i386/CULPlugin.o
In file included from /Users/Admin/www/picktags.com/public_html/app/platforms/ios/PickTags/Plugins/cordova-universal-links-plugin/CULPlugin.m:8:
In file included from /Users/Admin/www/picktags.com/public_html/app/platforms/ios/PickTags/Plugins/cordova-universal-links-plugin/Parser/CULConfigXmlParser.h:8:
/Users/Admin/www/picktags.com/public_html/app/platforms/ios/PickTags/Plugins/cordova-universal-links-plugin/Model/CULHost.h:36:57: error:
expected '>'
@Property (nonatomic, readonly, strong) NSArray<CULPath *> *paths;
^
/Users/Admin/www/picktags.com/public_html/app/platforms/ios/PickTags/Plugins/cordova-universal-links-plugin/Model/CULHost.h:36:58: error:
expected member name or ';' after declaration specifiers
@Property (nonatomic, readonly, strong) NSArray<CULPath *> *paths;
~~~~~~~ ^
/Users/Admin/www/picktags.com/public_html/app/platforms/ios/PickTags/Plugins/cordova-universal-links-plugin/Model/CULHost.h:36:1: error:
property requires fields to be named
@Property (nonatomic, readonly, strong) NSArray<CULPath *> *paths;
^ ~~~~~~~~~~~~~~~~~
/Users/Admin/www/picktags.com/public_html/app/platforms/ios/PickTags/Plugins/cordova-universal-links-plugin/Model/CULHost.h:36:58: error:
expected ';' at end of declaration list
@Property (nonatomic, readonly, strong) NSArray<CULPath *> *paths;
^
;
/Users/Admin/www/picktags.com/public_html/app/platforms/ios/PickTags/Plugins/cordova-universal-links-plugin/Model/CULHost.h:36:58: error:
expected identifier or '('
In file included from /Users/Admin/www/picktags.com/public_html/app/platforms/ios/PickTags/Plugins/cordova-universal-links-plugin/CULPlugin.m:8:
/Users/Admin/www/picktags.com/public_html/app/platforms/ios/PickTags/Plugins/cordova-universal-links-plugin/Parser/CULConfigXmlParser.h:20:20: error:
expected '>'

  • (NSArray<CULHost *> *)parse;
    ^
    /Users/Admin/www/picktags.com/public_html/app/platforms/ios/PickTags/Plugins/cordova-universal-links-plugin/Parser/CULConfigXmlParser.h:20:21: error:
    expected ')'
  • (NSArray<CULHost *> *)parse;
    ^
    /Users/Admin/www/picktags.com/public_html/app/platforms/ios/PickTags/Plugins/cordova-universal-links-plugin/Parser/CULConfigXmlParser.h:20:3: note:
    to match this '('
  • (NSArray<CULHost *> *)parse;
    ^
    7 errors generated.

** BUILD FAILED **

The following build commands failed:
CompileC build/PickTags.build/Debug-iphonesimulator/PickTags.build/Objects-normal/i386/CULPlugin.o PickTags/Plugins/cordova-universal-links-plugin/CULPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/Admin/www/picktags.com/public_html/app/platforms/ios/cordova/build-debug.xcconfig,-project,PickTags.xcodeproj,ARCHS=i386,-target,PickTags,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/Admin/www/picktags.com/public_html/app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/Admin/www/picktags.com/public_html/app/platforms/ios/build/sharedpch
ERROR building one of the platforms: Error: /Users/Admin/www/picktags.com/public_html/app/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Users/Admin/www/picktags.com/public_html/app/platforms/ios/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

any ideas ?

cordova version: 5.3.3

platforms:
Installed platforms: android 4.1.1, ios 3.9.2
Available platforms: amazon-fireos, blackberry10, browser, firefoxos, osx, webos

running on mac

Event listener doesn't appear to fire on Ionic

I'm have issues listening for the event on the Ionic platform.
I am able to successfully launch the app on iOS and Android from the universal link, but I cannot obtain any of the parameters.

I have tried adding the event listener to various places, app.js in run and on ionicplatform ready, in a controller and in the index.html

Am I doing something wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.