Fix WebViewer from breaking

Why was it rejected then? What does your app and script do?

1 Like

The script is designed to do :
1- The user can increase or decrease the font.
2- when I touch the screen the upper and bottom of Web Viewer is visible to false or true.
3. Read sentences with mp3 sound.

1 Like

Again?

I know Google doesn't always like apps that only contain a webviewer.

1 Like

Actually they sent me an email with the same image that I have attached it here in the above. They mean with this image that they rejected because my App is display only sntnce1 in the Web Viewer.

1 Like

It might help if you show the content of the email from google....

2 Likes

1 Like

You categorized your app as a News app according to Google.

3 Likes

See here:

https://support.google.com/googleplay/android-developer/answer/9859673?hl=en-GB#zippy=%2Capps

You probably want to try the Books and reference category

2 Likes


I think they categorized my app as a News app while I have had selected books an references.

1 Like

Hello Tim,

Do you have any idea why this problem occurs? So that my App sometimes displays sntnce1 in the Web Viewer. It might from the script.

1 Like

it is from the script

2 Likes

Ok.
If it's from the script, Is it possible to you to fix the script so that you solve the problem for me. I really appreciate of your help and solve my problems every time.

1 Like

Don't load the html in the webviewer until you have a webviewstring to feed to it.

2 Likes

Ok. So in which blocks should I fix it?

1 Like

I have not looked at your blocks. You must be loading the webviewer either in the designer or with blocks. It is your app, so you should know. :wink:

There is no guarantee that this will allow your app to pass Google's tests in Google Play. You still need to resolve your category with them.

2 Likes

I hope you can solve it. :innocent:

1 Like
var oSentence = "";
2 Likes

I have tested
var oSentence = "";
but the text is loading with stuck for sometimes.

1 Like

Don't know what the script/app is to do. But the error might lie in the "document.write(...)". After that the entire script is lost so that the following statement "smoothScroll(...getElementById("top")" cannot be executed correctly. The element "top" doesn't exist anymore.image
Instead one might use a "p" tag:

<p id="write"> </p>
<>
document.getElementById("write").innerHTML = window.AppInventor.getWebViewString();
smooth....
.... setWebViewString("go");
<>

Ref.: W3Schools
Definition and Usage

The write() method is mostly used for testing: If it is used after an HTML document is fully loaded, it will delete all existing HTML.

2 Likes

Hello Joerg_Kowalski,

The script is doing 3 things:

1- One code is for when I touch the screen it hides and unhides the top table and below table that contain the title and menu.
2- One code is for highlight the sentences when sound starts. So, it highlight one by one until highlight the last sentence.
3- One code is for resize the font.