I am working on a Xamarin Forms app with PDFTron integration.
I seem to be experiencing the situation where the app works as expected in the iOS simulator, but on a physical device, tool manager events don’t appear to be raised
For example, my event registration code looks like this. I am using PTDocumentViewController as the main viewer component (as opposed to using PDFViewCtrl directly).
PTToolManager toolManager = _ptDocViewController.ToolManager;
toolManager.AnnotationAdded += OnToolManagerAnnotationsAdded;
toolManager.AnnotationRemoved += OnToolManagerAnnotationsRemoved;
toolManager.AnnotationModified += OnToolManagerAnnotationsModified;
toolManager.ShouldShowMenu = new ShouldShowMenu(OnShouldShowMenu);
On a simulator, the handlers are called as I would expect, but not an a physical device.
It could be that I am doing something wrong, but has anyone else seen this difference? Or had trouble receiving events from the tool manager?