-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App craches, the package bluetooth_print can't print images on ios, it's working in android but doesn't work in iOS #178
Comments
I'm having the same issue, did you find any solution ? |
I was having the same issue in Android. I noticed that the example app on pub.dev had the line to show the image commented out! However, I discovered that the error is because the image size has not been set. For the image, you have to set an int value under width:200 for example. This then works. Have not tested in IOS but not setting the width caused a compile error. Once the width was set, error was removed and image printed.
|
I am also facing the same issues, did anyone have the solution ? |
I have solved the problem but adding resizing code in IOS else if([@"image" isEqualToString:type]){
|
@Niagawan-mave thanks a lot, finally it's working on ios now did you create a new package on pub.dev? or just forked it to your github account? |
@HamzaMihfad I just forked to my github account |
Here is the error message in xCode:
Exception NSException * "UIGraphicsBeginImageContext() failed to allocate CGBitampContext: size={0, 0}, scale=1.000000, bitmapInfo=0x2002. Use UIGraphicsImageRenderer to avoid this assert." 0x00000002837dae50
The text was updated successfully, but these errors were encountered: