plutonicdev / GroceryStore-with-server

Grocery Store with server integration
121 stars 95 forks source link

Search bar not working #7

Closed akshay-chorge closed 4 years ago

akshay-chorge commented 4 years ago

Hello i have uploaded server code to my server , and changed the BASE url alsowith it.But when i click on search icon in app and type something app crashes , but if i again changed url to your given url than search bar is working can you please help me out where i am doing mistake with server code.

SunnyforJava commented 4 years ago

when working with ur server r u able to LogIn ? n use the other normal functions ?

akshay-chorge commented 4 years ago

Yes i am able to work with other function but , when i click on srch bar nd type something app crashes. But if i again retored base url with urs one its working fine. Can you share me server side files with structre.

Thanks & Regards

On Thu, May 21, 2020, 1:04 AM Sunny notifications@github.com wrote:

when working with ur server r u able to LogIn ? n use the other normal functions ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/quintuslabs/GroceryStore-with-server/issues/7#issuecomment-631681619, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSXPWWHXINBKFXZS6A2PCTRSQWF5ANCNFSM4NEWHNPQ .

SunnyforJava commented 4 years ago

m not the creator of it.

and u r not d only/first one to face App Crash.

I think problem is not in d search bar, its bigger issue than that.

while working wid ur server, have u tried to logout & then login again ? otherusers n me too faced App Crash after relogin. Answer yet to b found.

akshay-chorge commented 4 years ago

Yes while working on server its working fine for other basic activity. I am also able to use admin panel and its is showing it on app. Problem is only with search bar .

On Thu, May 21, 2020, 1:12 AM Sunny notifications@github.com wrote:

m not the creator of it.

and u r not d only/first one to face App Crash.

I think problem is not in d search bar, its bigger issue than that.

while working wid ur server, have u tried to logout & then login again ? otherusers n me too faced App Crash after relogin. Answer yet to b found.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/quintuslabs/GroceryStore-with-server/issues/7#issuecomment-631685399, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSXPWV5UGUYZKQU2Z3NQRLRSQXCDANCNFSM4NEWHNPQ .

SunnyforJava commented 4 years ago

in my case, admin panel is working fine. no issues. But User Panel Android App crashes on phone when tries Relogin after a successful LogOut. Crashing Point is Just immediately after successful ReLogin.

akshay-chorge commented 4 years ago

yes i am also facing this issue may be due to local storage .

On Thu, May 21, 2020 at 2:27 AM Sunny notifications@github.com wrote:

in my case, admin panel is working fine. no issues. But User Panel Android App crashes on phone when tries Relogin after a successful LogOut. Crashing Point is Just immediately after successful ReLogin.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/quintuslabs/GroceryStore-with-server/issues/7#issuecomment-631722854, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSXPWTADJETO27YQHADH33RSQ75LANCNFSM4NEWHNPQ .

SunnyforJava commented 4 years ago

r u sure ? is it regarding Local Storage ? cause I have seen "Login Successful" msg box generating just before crash.

akshay-chorge commented 4 years ago

Ok i haven't seen it. How to connect with developer is there any option ?

On Thu, May 21, 2020, 2:24 PM Sunny notifications@github.com wrote:

r u sure ? is it regarding Local Storage ? cause I have seen "Login Successful" msg box generating just before crash.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/quintuslabs/GroceryStore-with-server/issues/7#issuecomment-631969627, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSXPWUJZUTIHDJB3ONGFG3RSTT4FANCNFSM4NEWHNPQ .

santoshnet commented 4 years ago

remove Log.d(TAG, localStorage.getFirebaseToken()); from MainActivity. as this source code is opensource so we are not providing fcm integrations. In Main Activity LineNo:250 remove log and it will work fine.

santoshnet commented 4 years ago

Search functionality in android app is the basic functionality. and its added later. so if you are facing any problem please check api. other wise wait a while till i will update next version.

santoshnet commented 4 years ago

Hello i have uploaded server code to my server , and changed the BASE url alsowith it.But when i click on search icon in app and type something app crashes , but if i again changed url to your given url than search bar is working can you please help me out where i am doing mistake with server code.

just check api. may b some error in your api. otherwise wait for next release very soon

santoshnet commented 4 years ago

yes i am also facing this issue may be due to local storage . On Thu, May 21, 2020 at 2:27 AM Sunny @.***> wrote: in my case, admin panel is working fine. no issues. But User Panel Android App crashes on phone when tries Relogin after a successful LogOut. Crashing Point is Just immediately after successful ReLogin. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#7 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSXPWTADJETO27YQHADH33RSQ75LANCNFSM4NEWHNPQ .

remove log in MainActivity Linr:250

santoshnet commented 4 years ago

Can you share me server side files with structre.

you will find ther server code from the main directory. if you are facing such issue then please wait for next release very soon

santoshnet commented 4 years ago

r u sure ? is it regarding Local Storage ? cause I have seen "Login Successful" msg box generating just before crash.

Due to github not allowing api keys to make pulic for that reason fcm api key removed but one log is there in main activity. remove log for firebase token .

NomanBaigA commented 4 years ago

I use localhost and i am not able to search. when i try to search products my app is crash. but when i use your Base URL it works. when i change url to localhost it is not working.

santoshnet commented 4 years ago

I use localhost and i am not able to search. when i try to search products my app is crash. but when i use your Base URL it works. when i change url to localhost it is not working.

check api or change as per your requirement

NomanBaigA commented 4 years ago

they are showing only 10 items in RecyclerView. but i have 12 items in my database. Please help me sir. @santoshnet .

santoshnet commented 4 years ago

they are showing only 10 items in RecyclerView. but i have 12 items in my database. Please help me sir. @santoshnet .

where its showing 10 items

if you are showing in home page then in server there is a option to show items in home page or not. change there other wise you can check from category.

NomanBaigA commented 4 years ago

Hello i have uploaded server code to my server , and changed the BASE url alsowith it.But when i click on search icon in app and type something app crashes , but if i again changed url to your given url than search bar is working can you please help me out where i am doing mistake with server code.

can you solve this search bar problem?

NomanBaigA commented 4 years ago

In RestService.java

@GET("api/v1/product/search") Call searchProduct(@Query("s") String search);

there is no product folder in v1 and can't find this searchProduct() method in any files and folders.

aashishjani commented 4 years ago

Yes in the serachbar when you type something app crashes , there was a problem of missing api for search To solve search bar problem

1)In file api/v1/index.html add below function.

function serach($query) { //implement method here for search }

2) In RestService.java

@GET("api/v1/search/{query}") Call searchProduct(@Path("query") String query);

It works for me on server also.

NomanBaigA commented 4 years ago

Yes in the serachbar when you type something app crashes , there was a problem of missing api for search To solve search bar problem

1)In file api/v1/index.html add below function.

function serach($query) { //implement method here for search }

  1. In RestService.java

@get("api/v1/search/{query}") Call searchProduct(@path("query") String query);

It works for me on server also.

please give me full code.

NomanBaigA commented 4 years ago

@aashishjani sir please give me full code of search function. I want searchProduct() also.

aashishjani commented 4 years ago

@NomanBaiga You can contact creator for the code As mentioned in readme.

NomanBaigA commented 4 years ago

how to move android app from local xampp to my own live server?

akshay-chorge commented 4 years ago

Change base URL with your server link. Upload server code to your server.

On Mon, Jun 1, 2020, 1:28 AM NomanBaigA notifications@github.com wrote:

how to move android app from local xampp to my own live server?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/quintuslabs/GroceryStore-with-server/issues/7#issuecomment-636520778, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSXPWRIQOPAT35RJY452BDRUKZF7ANCNFSM4NEWHNPQ .

NomanBaigA commented 4 years ago

Change base URL with your server link. Upload server code to your server. On Mon, Jun 1, 2020, 1:28 AM NomanBaigA @.***> wrote: how to move android app from local xampp to my own live server? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#7 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSXPWRIQOPAT35RJY452BDRUKZF7ANCNFSM4NEWHNPQ .

sir, i want step by step detail information about this topic. please help me.

santoshnet commented 4 years ago

Searchbar is in advanced version which is paybale.