'How to create another PWA from a PWA

I have a website where I want each page to have its own PWA icon (for both iOS and Android).

I'm able to dynamically change the manifest.json so the name, icon and start_url change depending on which page we are on, thus create a different PWA icon.

But the problem is after we launch one of these PWA:
The browser controls are not here anymore which also means no "Add To Home Screen" button.

So, how can we create a PWA when already inside a PWA (in both iOS and Android) ?


I focused on the browser controls are not here anymore, trying to have a link open the website outside of the PWA to get back the browser controls and the "Add To Home Screen".

But no matter what link I tried, with relative path, absolute path, with window.open(), or with a target="_blank" attribute, nothing worked.



Solution 1:[1]

You are creating a TFLiteConverter object from your weights file. The correct way to load the model weights is using load_weights link. Try:

tf.keras.model.load_weights(weights_file)

However, you also would first need to define the model the same way as you did when training the model. If you have saved your model in SavedModel format, use

model = tf.keras.models.load_model(weights_file)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 sakumoil