Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get data when overriding apps #244

Open
7 tasks
jynd opened this issue Oct 23, 2021 · 2 comments
Open
7 tasks

can't get data when overriding apps #244

jynd opened this issue Oct 23, 2021 · 2 comments

Comments

@jynd
Copy link

jynd commented Oct 23, 2021

Please try to fill all questions below before submitting an issue.

  • On which android versions do you have this issue? : every version
  • On which phones do you have this issue? : xiaomi 8 lite
  • Which hawk version are you using? : 2.0.1
  • Does this issue happen always or is it flaky? : no
  • Can you write failing test? : no
  • If it is Hawk.put and Hawk.get issue, can you write down which data you were trying to save and get it back?no
  • Is the data you are trying to save it huge or small? small

i am using Hawk in a project (A), it's publishing in google play. Now, i created another project (B), I let the appId of 2 projects overlap, I increased the version code and version name on B, B can override A but B can't get data in A.

in project A, i saved String by Hawk, when B override A, B can read this data, but when i save object in A, B can't read it.
What have i do?

Thanks

@MS0054
Copy link

MS0054 commented Dec 1, 2021

I have exactly the same problem
when i try to update app to new version، that's how it was

On which android versions do you have this issue? : every version
On which phones do you have this issue? : every phones
Which hawk version are you using? : 2.0.1
Does this issue happen always or is it flaky? : in latest update of app happend
Can you write failing test? : no
If it is Hawk.put and Hawk.get issue, can you write down which data you were trying to save and get it back? simple pojo
Is the data you are trying to save it huge or small? small


this is my pojo

public class TokenRes {

@SerializedName("token_type")
@Expose
public String tokenType;
@SerializedName("expires_in")
@Expose
public String expiresIn;
@SerializedName("access_token")
@Expose
public String accessToken;
@SerializedName("refresh_token")
@Expose
public String refreshToken;

}

When will this problem be solved? Or is there at least one solution right now?
I encountered this strange problem just when the new version was delivered, and I have very little time

@jynd
Copy link
Author

jynd commented Dec 3, 2021

I have exactly the same problem when i try to update app to new version، that's how it was

On which android versions do you have this issue? : every version On which phones do you have this issue? : every phones Which hawk version are you using? : 2.0.1 Does this issue happen always or is it flaky? : in latest update of app happend Can you write failing test? : no If it is Hawk.put and Hawk.get issue, can you write down which data you were trying to save and get it back? simple pojo Is the data you are trying to save it huge or small? small

this is my pojo

public class TokenRes {

@SerializedName("token_type")
@Expose
public String tokenType;
@SerializedName("expires_in")
@Expose
public String expiresIn;
@SerializedName("access_token")
@Expose
public String accessToken;
@SerializedName("refresh_token")
@Expose
public String refreshToken;

}

When will this problem be solved? Or is there at least one solution right now? I encountered this strange problem just when the new version was delivered, and I have very little time

I fixed this problem. my solution was to clone the hawk project and copy all the code into my project then i edited the code in it. I found the problem where the hawk library decryption key, I skipped the encryption and decryption step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants