overwolf.utils.openStore is not working

Issue Description:
I’ve tested the new API called overwolf.utils.openStore and it doesn’t work as expected.
by calling (from my app):

overwolf.utils.openStore({
    page:overwolf.utils.enums.eStorePage.ReviewsPage
  });

I expect to land @ my app’s review page.
instead, I get this screen:

you can see that there’s an error, black on dark background.

Steps to reproduce:

  1. OW store window is closed.
  2. open an app
  3. input the following command in the app’s devtools:
overwolf.utils.openStore({
    page:overwolf.utils.enums.eStorePage.ReviewsPage
  });
  1. Bug Reproduced

Overwolf Client Version: 0.153.0.13

Do you currently have a workaround? partially. we’re using the old API to get to my app’s page but it doesn’t support navigation to reviews page

2 Likes

I have it implemented as

		// Open App Store on Review click
		$(document).on('click', '#review_the_app', function(e){
			e.preventDefault();
			overwolf.utils.openStore({
				page:overwolf.utils.enums.eStorePage.ReviewsPage,
				uid:"decddmhlpdgkcihhfbahfkafojbjckglidmilgoh"
			});
		});

And upon click in version 0.149 I’m just brought to the app store main landing page.
Upon click in version 0.153 I get the same error as @shir.brass:

java.io.FileNotFoundException: http://storeclient.overwolf.com:8080/decddmhlpdgkcihhfbahfkafojbjckglidmilgoh/reviews

So yeah, it’s not working correctly at the moment, for sure.

1 Like

The ReviewsPage enum was introduced in Overwolf version 0.153.
The bug happens when the store is closed (if it is already opened, it will work).

A fix will be added for the upcoming version.

1 Like

on my side, with 0.153, first time went to app page, second time to reviews page.

Yeah it’s a bug, we’ll fix it for the next iteration, Like Tom said before it only happens when the store is closed.

You can use this function as a workaround until we fix it in the next iteration.

const qaWorkaround = () => {
  overwolf.utils.openStore({
    page: overwolf.utils.enums.eStorePage.LoginPage
  });

  setTimeout(() => {
    overwolf.utils.openStore({
      page: overwolf.utils.enums.eStorePage.ReviewsPage
    });
  }, 1500);
}
3 Likes

@Heaser fixed in 0.155?

@shir.brass Please check on 0.155. It should be fixed. update me.

1 Like

@eransharv I have attempted to reproduce the issue and I can confirm that the issue is now resolved.

we’ll fully integrate it from our end once 0.155’s phasing will be sufficient

3 Likes

@eransharv just to confirm: The version 0.155.0.10 that’s currently available to 50% of users, that’s the build that includes this fix, correct?

1 Like

Yes. If you didn’t get the update and want to get it now - try to relaunch OW. That might give you the updated version (not sure about that, but worth trying). OR - use the Developers channel…

With version 0.156.0.19 this seems to be broken somewhat again.

overwolf.utils.openStore({
	page: overwolf.utils.enums.eStorePage.ReviewsPage
});

basically just does the same as

overwolf.utils.openStore({
	page: overwolf.utils.enums.eStorePage.OneAppPage
});

It does not open the Reviews tab.

The workaround with setTimeout also no longer works.

1 Like

@eransharv Could you change the status from done to in-progress ?

2 Likes

@Bl0n Actually I’m on 0.156.19 and it’s not reproducible.
Is it reproducuible with your app %100 of the cases?

So me and Heaser worked on this via Discord just now.

It looks like it’s specific to my account, because I have a test-subscription to my app, without the app having a published subscription. This throws an error in the app store which then causes the Reviews-tab from not opening.

When I’m logged out, the function works as intended.

This can be set to done again I think!

4 Likes