bradmartin / nativescript-advanced-webview

NativeScript plugin for Chrome CustomTabs on Android and SafariViewController on iOS.
Other
60 stars 28 forks source link

pass data via URL #39

Open delanick opened 6 years ago

delanick commented 6 years ago

Hey @bradmartin This looks amazing! Before I install it I just want to know - can I add parameters to my URL like a token and user_role so my server can apply some logic? The standard {N} webview doesn't has my parameters in the URL but my server doesn't see them, so not sure it passes them along.

bradmartin commented 6 years ago

Hi, honestly I'm not sure 😄 - never looked into that. This plugin is just exposing Safari and ChromeCustomTabs instead of the stock webview that android/ios provide. So it's possible you can do this but I'm not aware of how to at this time.

delanick commented 6 years ago

hahaha @bradmartin thanks, will have to download it and try it out. I'm a bit of an amateur with {N}, so not sure about this, but you'll know as it's your plugin: is there any way to include the webview on the page under the action bar? Or is it specifically its own 'page'?

bradmartin commented 6 years ago

:) I don't think so. This plugin actually launches Chrome on android and Safari on iOS. It's not really a 'webview'. The name is probably not great 😄 but I had no clue what to name it when it was done 😆

delanick commented 6 years ago

@bradmartin Ah ok cool, thanks bud! I really need it to be a webview of sorts as I'm using it for an analytics/.dashboard page but the info and graphs will be too fluid to hard code into an app. I may add graphs and stats every few days and don't want to keep launching new versions of the app.