Web page viewer in app !! - Forum

Forum Navigation
You need to log in to create posts and topics.

Web page viewer in app !!

hello all

 

1-

I used the "visualneo web & mobile" to create a mobile app (.apk)

But the  app Was not format apk !!
what should I do ? How to get apk format?

 

2-

Does the "visualneo web & mobile" support the internal browser?

I want the user to click on the link, Open the browser inside the app !

 

please guide me

regards

Deleted user has reacted to this post.
Deleted user

Hi @BlackSnow,

On "Project -> Compile/Publish" menu option, select "Mobile Application" as Target Platform and follow the instructions.
You will have to upload your project to PhoneGab Build in order to get your .apk file.

Regarding Internal Browser, you can use the IFrame object or just a simple link. As VisualNEO Web applications are Web Apps, they are already running inside a browser.

Regards.

@luishp

Please tell me how to put the browser in the iFrame ?!

 

thank yoooou

@BlackSnow an IFrame is already a browser.
Just put the URL on the "source" IFrame property.

Regards.

@luishp : i put the URL on the "source" IFrame property but show Errors !!

 

Error 1 : [$interpolate:interr] http://errors.angularjs.org/1.7.5/$interpolate/interr?p0=www.myweb.com/%5Ba%5D&p1=Error: [$interpolate:noconcat] http://errors.angularjs.org/1.7.5/$interpolate/noconcat?p0=www.myweb.com/%2F%5Ba%5D

Error 2 : [$interpolate:noconcat] http://errors.angularjs.org/1.7.5/$interpolate/noconcat?p0=wwww.myweb.com/%5Ba%5D
at Ca.throwNoconcat (file:///C:/ProgramData/SinLios/VisualNeoWeb/js/angular.min.js:226:387)
at y (file:///C:/ProgramData/SinLios/VisualNeoWeb/js/angular.min.js:115:303)
at Anonymous function (file:///C:/ProgramData/SinLios/VisualNeoWeb/js/angular.min.js:116:47)
at Anonymous function (file:///C:/ProgramData/SinLios/VisualNeoWeb/js/angular.min.js:149:75)
at m.prototype.$digest (file:///C:/ProgramData/SinLios/VisualNeoWeb/js/angular.min.js:151:469)
at m.prototype.$apply (file:///C:/ProgramData/SinLios/VisualNeoWeb/js/angular.min.js:155:33)
at Anonymous function (file:///C:/ProgramData/SinLios/VisualNeoWeb/js/angular.min.js:169:386)
at completeTask (file:///C:/ProgramData/SinLios/VisualNeoWeb/js/angular.min.js:166:15)
at Anonymous function (file:///C:/ProgramData/SinLios/VisualNeoWeb/js/angular.min.js:51:487)

My steps are:

1- create "page 1" and "page 2"

2- create a "text input" by [a] variable on the page 1

3- create a "push button" by "go to page 2" action on the page 1

4- create an "iFrame" and put URL in "source" on the page 2

 

Does the  iFrame support the "variable" ?!

Error appears when I place a variable in the "source" iFrame   :|

It works fine for me.
Follow this instructions step by step:

1- Create "page1" and "page2"
2- Create a "text input" with [myvar] variable on the page 1.
3- Create a "push button" with "GotoNextPage" action on page1.
4- Create an "iFrame" and put [myvar] in "source" on page2.
5- Run the App.
6- Write "https://visualneo.com" on text input.
7- Click the button

Voilá! 🙂

ops @luishp !

This is true 🙂

But :

I want "source" to have a link and a variable !

for example : (source=) http :// mysite . com / [myvar]

Check it out to see the Errors 🙂

@BlackSnow, you must be a bit creative to solve this:

On page-enter (page2) event add:

SetVar [myvar2] "http://mysite.com/[myvar]"

Then use [myvar2] on IFrame source property. :)

Thank you, Mr. Creative   :-p

@luishp @hpw

i have  Error to run app :

Expected ';' (main.js?v=10, 50)

How to fix it ؟!

Deleted user has reacted to this post.
Deleted user

Sorry @BlackSnow, it's almost impossible to help you with such a few information.
Have you added custom JavaScript to your app?
It seems a ";" character is missing on line 10, position 50 on the main.js file.

Regards

Quote from luishp on December 30, 2018, 8:26 pm

Sorry @BlackSnow, it's almost impossible to help you with such a few information.
Have you added custom JavaScript to your app?
It seems a ";" character is missing on line 10, position 50 on the main.js file.

Regards

No I did not use javascript

It can be as simple as a missing double quote, but it's impossible to say without more information.