

Chris Pim
Members-
Content Count
72 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Chris Pim
-
Linking errors with FacebookAudienceNetwork
Chris Pim replied to Chris Pim's topic in Cross-platform
If you purchase the JVE ad component you get the sources so I suggest doing that if you’d like to see how Yegor has done it. It’s probably a fair thing to do if he’s put all the effort into figuring it out. But I can confirm that he is loading the framework at runtime but not in the way David says as that also fails to link. He’s loading the framework file directly from the bundle and invoking the initialiser at runtime. This means that the framework has to be deployed with your app and signed separately with the same provisioning profiles before it’s included as per his instructions. It works locally but when I tried to upload a sample app to TestFlight it raises errors from the App Store because you’re embedding a third party binary and the store isn’t a fab of doing this. I’m sure it’s all solvable but I haven’t had any time to look into it as I had to abandon Audience Network for now. hope this helps -
I’ve not tried it yet but there’s an article in Chinese here which takes you through how to do it. https://translate.googleusercontent.com/translate_c?depth=1&nv=1&pto=aue&rurl=translate.google.co.uk&sl=zh-CN&sp=nmt4&tl=en&u=https://blog.csdn.net/delphiteacher/article/details/104344285&usg=ALkJrhizIuLwrZCrBE-qSZ-hlKqRfCeYKQ If you manage to get it working, it would be great if you could share your findings with the group! I think David Nottage was also looking into this but not sure if he got anywhere with it yet.
-
Problem with Delphi RIO 10.3.3 and Google API Level 29
Chris Pim replied to Massimiliano S's topic in Cross-platform
There are a number of reports of this on QP. Delphi 10.3.3 doesn’t support Android 10 (targeted with SDK 29) but Delphi 10.4 seems to work. I also hope someone finds a workaround for 10.3.3 before the Google deadline, as 10.4 isn’t an option for us until it’s been made more stable.- 20 replies
-
- api
- play store
-
(and 1 more)
Tagged with:
-
Hi all, This morning while debugging my FMX app in Windows I suddenly started getting an EOleException within the Notification Center while initialising. onecoreuap\base\diagnosis\platform\notifications\developer\toast.cpp(2389)\wpnapps.dll!63CC11A2: (caller: 63CB5660) ReturnHr(1) tid(14e0) 803E0105 The notification platform is unavailable. First chance exception at $776F9862. Exception class EOleException with message 'The notification platform is unavailable' I've never seen this before, but it may be related to my Windows setup having updated over the weekend to v2004 (19041.388). It looks suspiciously like MS have changed the way their notification APIs work in this update... Has anyone seen this before or know of a way to resolve it? There's nothing useful on Google about this error that I could find. Thanks
- 1 reply
-
- firemonkey
- fmx
-
(and 2 more)
Tagged with:
-
Can I use iOS .storyboards generated from Rc10.4 under Rx10.3.3 ?
Chris Pim replied to Rollo62's topic in Cross-platform
I’ve found a link to how to add a storyboard to a Delphi 10.3 project here: https://quality.embarcadero.com/plugins/servlet/mobile#issue/RSP-12931 Take a look at the 4th response from Sarina DuPont -
Can I use iOS .storyboards generated from Rc10.4 under Rx10.3.3 ?
Chris Pim replied to Rollo62's topic in Cross-platform
I doubt you’ll be able to use storyboards in 10.3.3 projects but I would be very interested to hear if anyone has found a workaround. In terms of Apple, they won’t remove your app if it’s already approved, they just won’t let you upload new updates or new apps after the deadline. i suggest you report any and all issues you’re having with 10.4 to Embarcadero via the quality portal as they seem to be working quickly to review new bug reports and release patches so that’s the best way to move forwards. -
I wonder if anyone else has seen problems with UI scaling on MacOS apps? I created a testing tool in Delphi 10.3.3 for Mac OS and it looks great on 10.15 (Catalina). My MacOS SDK in Delphi is 10.15.3. I passed the binary to a colleague running MacOS 10.13 to run, and although the window size was the same, the contents rendered 4 x larger and the app became unusable. After some trial and error I realised the problem was the NSHighResolutionCapable which was set to true. I changed this to false and it runs fine on both Macs ok. The only remaining oddity is that it renders the titlebar twice - the correct one and then a secondary one with the app name directly below it. I've searched Embarcadero's quality portal for any reference to this but can't find any. Has anyone else had this problem before? I'm happy to log it with them if it looks like a bug. I'm not even sure what having NSHighResolutionCapable = true does besides cause problems, so wonder if I'd be better keeping it turned off?
-
NSHighResolutionCapable = true scaling problems on MacOS 10.13
Chris Pim replied to Chris Pim's topic in FMX
Thanks guys that’s really helpful. I was searching for the NSHighResolutionCapable flag so no wonder I didn’t find that article! I’ll give it a try. -
Hi, I've successfully built and tested my app on Android 64 with Rio 10.3.3 and now trying to build the .aab file. The project is configured to build this, but I'm getting an error at Deployment time: [PAClient Error] Error: E6408 java.lang.UnsupportedClassVersionError: com/android/tools/build/bundletool/BundleToolMain : Unsupported major.minor version 52.0 I've always used JDK1.8.0_60 and that's what the paths are in my SDK Manager for Android 32 and 64 targets. The odd thing is that the command Delphi is running is: [PAClient Error] Error: E6408 Unable to execute '"C:\Program Files\Java\jdk1.7.0_25\bin\java.exe" -jar "c:\program files (x86)\embarcadero\studio\20.0\bin\android\bundletool-all-0.10.3.jar" build-bundle --modules="C:\Development\Project\Android64\Release\Project\base.zip" --output="C:\Development\Project\Android64\Release\myShiftPlanner\bin\Project-unsigned.aab" --config="C:\Development\Project\Android64\Release\Project\buildconfig.json"' (Error 1) Where is it determining that it needs to use JDK1.7.0_25? I can't see this anywhere in my Tools > Options? Surely it should be using the one I defined in my SDK Manager? If I manually run the above command but use the 1.8.0_60\bin\java.exe instead, it complains about a missing buildconfig.json file - which is missing from the release folder. It sounds like I may be missing a configuration or something similar? I followed EMBs instructions on the DocWiki to configure my project. Has anyone else had a problem with this or know if there are issues with the bundle tool?
-
Java version used for bundle tool (Android 64 aab) and error
Chris Pim replied to Chris Pim's topic in FMX
I’ve checked and there’s an extra key in the registry location you mentioned called JDKPath which isn’t published into the IDE. Changing this seems to have fixed the problem and I can now build an aab file! Thanks again Dave -
Java version used for bundle tool (Android 64 aab) and error
Chris Pim replied to Chris Pim's topic in FMX
Thanks Dave. Have you ever had problems with it generating the buildconfig.json file? It doesn’t seem to have created one in my release folder so wonder if I need to turn something on in my project config? -
Linking errors with FacebookAudienceNetwork
Chris Pim replied to Chris Pim's topic in Cross-platform
Thanks Dave, I’m glad you saw the same. Thanks for reporting it for me too, I’ve voted for it so hopefully it’ll be looking into. -
That’s good news. In terms of the banner being in a scroll box, I’m not surprised that it flickers when scrolling as it isn’t really designed to be used like that. I suggest anchoring it to a fixed position on your form if possible. The flicker is because the FireMonkey code has to recalculate the position when it scrolls and force a re-render of the native control. As FireMonkey isn’t responsible for rendering the banner it can’t use double buffering to smooth the flickering as it would with other controls. Sorry but if you need it to be in a scroll area then I’m not aware of a solution, but maybe someone else does?
-
The TBannerAd component creates a native control. Because of the way FireMonkey renders everything to a canvas, native components will always render on top of FireMonkey components. It’s a side-effect of the way it works. The way I got round this is to hide and show the banner component when in other screens (e.g. tabs of a page control or frames which display as screens depending on your UI architecture), so it doesn’t get it the way when I don’t want it to. I also suggest including a bottom padding to your multi view menus to push the contents above the banner. I hope this helps
-
The Android 64bit deadline warnings have started
Chris Pim replied to Yaron's topic in Cross-platform
That’s a shame but useful to know. Hopefully we won’t need any hacks! -
The Android 64bit deadline warnings have started
Chris Pim replied to Yaron's topic in Cross-platform
I wondered the same thing but I guess as the NDA exclusion only mentions allowing Android updates from 10.4 beta not iOS, you’d still be better using 10.3.2 for iOS, Windows and Mac builds while they get 10.4 released if you’re already using 10.3 anyway. 10.3.1 is really buggy so if 10.3.2 is more stable then it may be worth upgrading. -
The Android 64bit deadline warnings have started
Chris Pim replied to Yaron's topic in Cross-platform
Very true, yet I still have hope that EMB get a 10.4 beta out soon so we can have a proper solution rather than a risky hack! -
The Android 64bit deadline warnings have started
Chris Pim replied to Yaron's topic in Cross-platform
Reassuring words from EMB about it already being underway. Summer is a long season so hopefully the 10.4 beta program will start sooner rather than later! -
The Android 64bit deadline warnings have started
Chris Pim replied to Yaron's topic in Cross-platform
Has anyone heard any more about this yet? The dreaded 1st August deadline is 3 weeks away after which we won't be able to give our Android users app updates should we need to. If things are running according to the last roadmap at EMB, then they're behind and haven't even released 10.3.2 yet let alone the sorely needed 10.4 which is supposed to contain the Android 64 bit work. I'm getting very worried that we might not be able to support our Android users for 3 months while they get a 10.4 beta out. We have 220,000 of them and the thought of not being able to get even an emergency bug fix to them should we need to terrifies me! Surely EMB must be taking this deadline seriously? -
It may seem so, but that’s not true - they just weren’t fixed before the release...
-
JSON parsing fails on iOS but fine in Windows
Chris Pim posted a topic in RTL and Delphi Object Pascal
I have strange problem occurring when parsing a JSON string on iOS using the System.JSON library in Berlin. I call TJSONObject.ParseJSONValue() to get a value from the start of a JSON string which has worked fine if I run under Windows. As soon as I run under iOS, the same JSON string causes a null pointer exception. When debugging through, the null pointer is the TJSONObject class itself which is odd as ParseJSONValue() is a class function so don’t know why that would ever happen. I suspect this isn’t really the case and is just what the debugger is interpreting (the iOS debugger in Berlin isn’t great). I suspect the JSON string is too large for the parser as it’s a huge string. My question is whether anyone is aware of a size limit for parsing a JSON string or whether there’s a known issue in the Berlin JSON libraries which might cause this? Unfortunately I can’t provide a sample JSON string as it’s a client’s backup data but hopefully someone will be able to help. -
JSON parsing fails on iOS but fine in Windows
Chris Pim replied to Chris Pim's topic in RTL and Delphi Object Pascal
It looks like the issue was due to a nil character at the end of the string I was parsing, rather than a string length issue. Thanks for your help Markus!