ToolbarItemBadgeSample
ToolbarItemBadgeSample copied to clipboard
Object reference not set to instance of object.
I followed the example provided but i get object reference not set to instance of object when press the stepper to call the dependency service.
i got the same error , did you solve it ?
Hi guys Please add [assembly: Dependency(typeof(ToolbarItemBadgeService))] in ToolbarItemBadgeService class both Android and iOS above namspace
I have found a solution and commented on another thread. Please check if it works https://github.com/CrossGeeks/ToolbarItemBadgeSample/issues/11#issuecomment-669008974
What worked for me was to add this on OnCreate function in MainActivity
CrossCurrentActivity.Current.Init(this, bundle);