I'm developing e-commerce app which runs well in debug mode but not running properly in release mode. SCENARIO : When hit add to cart button, the product is added to cart and cart length is updated at the cart icon. On the cart page there is + button for adding number of items and - button for deducting number of item, also there is deleted button for deleting an item completely from the cart. All these works fine in debug mode, However when I build release apk all these actions are no longer working well (when I hit add to cart, an item is added to cart but the cart length still show 0 until I do some refresh, same to + &- they respond after some refresh getting out of page and getting back again. All methods for adding to cart ,+ &- items are implemented in the provider class. so all actions and data are listened from provider class
Can someone help where I'm getting it wrong.