nativescript-advanced-webview icon indicating copy to clipboard operation
nativescript-advanced-webview copied to clipboard

pass data via URL

Open delanick opened this issue 6 years ago • 4 comments

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.

delanick avatar Aug 03 '18 10:08 delanick

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.

bradmartin avatar Aug 03 '18 13:08 bradmartin

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'?

delanick avatar Aug 03 '18 14:08 delanick

:) 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 😆

bradmartin avatar Aug 03 '18 14:08 bradmartin

@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.

delanick avatar Aug 03 '18 15:08 delanick