TeamMaestro / pdf-viewer

PDF viewer web component built in StencilJS. Reusable in Angular, Ionic, React, Vue.JS, etc.
MIT License
78 stars 12 forks source link

He is good on the browser When I run to my phone, he will report the following error. #21

Closed qwerqwermhc closed 5 years ago

qwerqwermhc commented 5 years ago

default He is good on the browser When I run to my phone, he will report the following error. Unable to open asset URL: file:///android_asset/www/assets/fonts/roboto-bold.woff2 Unable to open asset URL: file:///android_asset/www/assets/fonts/roboto-bold.woff Unable to open asset URL: file:///android_asset/www/assets/fonts/roboto-bold.ttf Why is this so? @natenorm @jpinkster @db3dev @sean-perkins @sbannigan

sean-perkins commented 5 years ago

Not an issue with the plugin. Your PDF is probably referencing a font that's not available on Android devices. I don't own an Android device and pray I'm never kidnapped and forced to use one.

qwerqwermhc commented 5 years ago

My Android version is 5.1.2 Is it related to the Android version? Still not supporting Android. I can open it in the browser. I can't get it on my Android phone. Is this plugin not supporting Android or what is the reason? What time are you testing Android?

qwerqwermhc commented 5 years ago

I am very sorry, just that the error is my other error. The real error is here. TypeError: Cannot read property 'querySelector' of null TypeError: Cannot read property 'querySelector' of null", source: file:///android_asset/www/build/main.js (178931)

qwerqwermhc commented 5 years ago

@sean-perkins